|
|
|
| Title : |
how to make an image reset a form (instead of using the conventional reset button type). |
| Categories : |
Java Script |
 Boaz Yahav |
| Date : |
Jun 16th 1998 |
| Grade : |
1 of 5 (graded 1 times) |
| Viewed : |
2673 |
| File : |
No file for this code example. |
| Images : |
No Images for this code example. |
|
| Search : |
More code by Boaz Yahav |
|
| Action : |
Grade This Code Example
|
|
| Tools : |
My Examples List |
|
|
|
|
|
|
<!-- this is the real form -->
<form name=myform action=test2.html>
please enter line1 <input type=text name=first><br>
please enter line2 <input type=text name=last><br>
</form>
<!-- this is a form that all it does is reset the data in the first form
-->
<form action="nothing" onsubmit="return resetform();">
<input type=image src=image.jpg>
</form>
<script language=javascript>
<!--
function resetform() {
document.myform.reset();
return false;
}
// -->
</script>
|
|
| Balance values between two list boxes. Change the value of list box A acording to the value in list box B and vice versa using Javasvript. Categories : Java Script, Form Processing | | | A Simple sign up script with PHP and JavaScript validations. Categories : PHP, Java Script, MySQL, Databases | | | Protect your mailto: email addresses from bots Categories : PHP, Email, Java Script | | | Create HTML forms dynamicly using Javascript & PHP Categories : PHP, PHP Classes, Java Script | | | AJAX XML HTTP Request - Compatible with almost browsers! Categories : AJAX, HTTP, Java Script | | | Array values from javascript to php Categories : PHP, Java Script, Arrays | | | Tree Menu Dynamic (+Static) with Loading in Progress.. Categories : PHP, Java Script, HTML and PHP | | | OverEasy - PHP generated JavaScript to do mouseovers on
your pages. Modify one file and one function does it all
for you! Categories : PHP, Java Script, HTML and PHP, MySQL | | | Javascript linked dropdowns Categories : Java Script, HTML, Classes and Objects | | | Javascript animated menu items Categories : DHTML, CSS, Java Script, HTML | | | Remote Scripting: send form POST data to a script and insert the results into a page without refreshing the page. Categories : PHP, AJAX, HTML and PHP, Java Script | | | Bouncing Marquee at Status Bar Categories : Java Script, HTML, Browsers | | | PHP Array to Javascript Object Categories : PHP, Arrays, Java Script | | | How to create <SELECT> menues that change on the fly according to other <SELECT> menues on the page? Categories : Java Script, HTML | | | JavaScript dropdown list menu to switch any page. Categories : Java Script, Beginner Guides, Form Processing | |
|
|