Could anyone tell me is possible that I put image on the reset button? thanks very much
Printable View
Could anyone tell me is possible that I put image on the reset button? thanks very much
Create an image with the picture you want to use and
<img src="myReset.gif" onClick="blah blah">
I dont know exactly the reset code. Sorry
Could explain blar blar a little bit more?
Well its not actually blar blar, its blah blah. Meaning when that image is clicked you may call a function or a subroutine that resets the form.
Lets say you make the button and name it myReset.gif
And that the form is named "myForm", with a textbox for a name called "txtName"
<html><head>
<script language="JavaScript">
function resetForm()
{
document.myForm.txtName.value = ""
}
</Script>
</head>
<body>
<form name="myForm">
<input type="text" size=15 name="txtName">
<img src="myReset.gif" onClick="resetForm()">
</form>
</body></html>
Hope that is better than blah blah...
Code:function resetForm()
{
myForm.reset();
}