|
-
Jun 27th, 2001, 10:08 PM
#1
Thread Starter
Lively Member
image button
Could anyone tell me is possible that I put image on the reset button? thanks very much
-
Jun 27th, 2001, 10:14 PM
#2
Hyperactive Member
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
Top Tip: You can make friends and impress the opposite sex at geeky cocktail parties by saying "DB" instead of database. - Karl Moore
-
Jun 27th, 2001, 11:05 PM
#3
Thread Starter
Lively Member
thanks
Could explain blar blar a little bit more?
-
Jun 28th, 2001, 02:40 AM
#4
Hyperactive Member
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...
Top Tip: You can make friends and impress the opposite sex at geeky cocktail parties by saying "DB" instead of database. - Karl Moore
-
Jun 28th, 2001, 01:21 PM
#5
Frenzied Member
Code:
function resetForm()
{
myForm.reset();
}
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|