Steven_Smith
05-28-2003, 02:59 AM
I have a button that I wish to disable after it gets clicked once. Stop the double clicking.
The button is an input.
<input onfocus="this.blur();" type="image" name="go" src="images/credit_auth_01.gif" onmousedown="this.src='images/credit_auth_01-down.gif'" onmouseover="this.src='images/credit_auth_01-over.gif'" onmouseout="this.src='images/credit_auth_01.gif'">
When ever I try to access this button in the validate script for the form
document.formname.go.disabled=true It doesn't work. Can I disable a input type image?
Can I also change the src if the input like
document.formname.go.src='red_button.gif'?
I can't get this to work,
Steve
The button is an input.
<input onfocus="this.blur();" type="image" name="go" src="images/credit_auth_01.gif" onmousedown="this.src='images/credit_auth_01-down.gif'" onmouseover="this.src='images/credit_auth_01-over.gif'" onmouseout="this.src='images/credit_auth_01.gif'">
When ever I try to access this button in the validate script for the form
document.formname.go.disabled=true It doesn't work. Can I disable a input type image?
Can I also change the src if the input like
document.formname.go.src='red_button.gif'?
I can't get this to work,
Steve