2011年11月18日星期五

How to Clear Internet Forms

When creating forms, you need to give the user the option to clear the form and start over. This process makes it easier to restart a form without deleting each field. One HTML method is the "Reset" button. This allows users to click it once to clear all fields in the form. The reset button is also easy for the developer. You only need to set the form button as the "reset" type and it processes this action for you with no programming required. 1Open your favorite HTML editor. You can write forms in UGG Blog a simple text editor such as Notepad or a more advanced HTML editor with color coding, such as Dreamweaver or Visual Studio.2Create a simple form. You can also edit an existing form. If you have an existing form, then this step can be skipped. For example, this code displays a form in which the user can enter a first and last name:form id="my_form" method="post"input type="text" id="my_firstname"input type ="text" id="my_lastname"/form3Insert a reset button. The reset button has the "input" tag, but it's given the "reset" type. An input type given the "reset" type automatically triggers web browsers to clear form variables. The code below should be inserted between the "form" and "/form" tag."input type="reset" value="Clear my form!""4Save the file and open it with a web browser. You can open it with any browser including Chrome, Internet Explorer or Firefox. The results should be the same.5Enter information in the form. You can even enter information in just one text box to test the function. When you are finished, click the "Reset" button. The form should be entirely cleared. This is what your readers and customers will see when you publish it to the website.

没有评论:

发表评论