File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes onclick= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "onclick="this.disabled=true;"" Watch "onclick="this.disabled=true;"" New topic


Himalay Majumdar
Ranch Hand

Joined: Sep 28, 2008
Posts: 324
onclick="this.disabled=true;" is working for me in IE but not in Firefox. Below is the code.

Ultimately I am trying to grey out the "Submit" button by using the following code.

onclick="setTimeout('document.getElementById(\'' + + '\').disabled=true;', 50);" styleClass="button">

but onclick="this.disabled=true;" is not working for me at the first place in Firefox.

SCJP 1.6, SCWCD 5.0, SCBCD 5.0 [loading..]
I agree. Here's the link:
subject: onclick="this.disabled=true;"
It's not a secret anymore!