Reset : Reset « Form « JavaScript Tutorial

JavaScript Tutorial
1. Language Basics
2. Operators
3. Statement
4. Development
5. Number Data Type
6. String
7. Function
8. Global
9. Math
10. Form
11. Array
12. Date
13. Dialogs
14. Document
15. Event
16. Location
17. Navigator
18. Screen
19. Window
20. History
21. HTML Tags
22. Style
23. DOM Node
24. Drag Drop
25. Object Oriented
26. Regular Expressions
27. XML
28. GUI Components
29. Dojo toolkit
30. jQuery
31. Animation
32. MS JScript
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
JavaScript Tutorial » Form » Reset 
10. 25. 1. Reset

The Reset object represents a Reset button within an HTML form.

The button is created using the HTML tag and specifying the TYPE attribute as reset.

Reset buttons are used for form submissions.

Property/MethodDescription
blur()Removes focus from Reset button
click()Simulates a mouse click on a Reset button
focus()Sets the focus to the Reset button
formSpecifies the form name that contains the Reset button
handleEvent()Invokes the event handler
nameHTML NAME attribute for the Reset button
onBlurEvent handler for Blur event
onClickEvent handler for Click event
onFocusEvent handler for Focus event
typeHTML TYPE attribute for the Reset button
valueHTML VALUE attribute for the Reset button


<html>
    <head>
    <title> Example of the reset object</title>
    </head>
    <body>
    <form name="form1">
    Click the Reset button to reset the form.
    <br><br><br>
    Enter Name: <input type="text" Name="name" Size=15>
    <br>
    Enter Phone: <input type="text" Name="phone" Size=10>
    <br><br>
    <input type="reset" name=resetbutton value=Reset>
    <br>
    <br>
    </form>
    </body>
    </html>
10. 25. Reset
10. 25. 1. Reset
10. 25. 2. Reset.blur()
10. 25. 3. Reset.click()
10. 25. 4. Reset.focus()
10. 25. 5. Reset.form
10. 25. 6. Reset.handleEvent()
10. 25. 7. Reset.name
10. 25. 8. Reset.onBlur
10. 25. 9. Reset.onClick
10. 25. 10. Reset.onFocus
10. 25. 11. Reset.type
10. 25. 12. Reset.value
10. 25. 13. Resetting a form on page load
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.