Back to Top
The nuts and bolts for
Creative web development

Disable Submit Button

This small behavior disables a Submit Button after the first submit.

A common scenario is that the credit authorization number is late to come back, the user becomes anxious, and he or she presses the payment button again.

One way to protect the user is by disabling the tempting button after the user clicks it. This behavior sets the javascript when a submitbutton is selected.


UI Access

You can use this action behavior when a submitbutton is selected by choosing

Behaviors >Disable Submit Button.


Type: Behavior
Product: Dreamweaver 3, Dreamweaver 4, Dreamweaver MX, UltraDev 4, Dreamweaver MX 2004
Browser: All

Share this Article


IE7 issue

This behavior dose not work with an image submit button in IE7. The button become disabled onload. On the other hand it works just fine in FireFox 2.0

Disables Submit but does not submit form

I too had this script execute in error. I use a javascript validate as well and the form does not submit but the submit button does disable. Almost cost me an order on my webstore, possibly others!

Disable submit button behaviour

Doesn't work in IE 6 :-(

RE: Doesn't seem to work if other JS functions are on the page

If this one did't work, until an update, you can try Kaosweaver Submit Once, much slimmer in options, but worth a shot.
See all 5 Reviews