This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "button" Watch "button" New topic
Author

button

phani kon
Ranch Hand

Joined: Apr 06, 2005
Posts: 251
Can we disable save button using
document.frmmain.save.disabled = true
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
silly question: Did you try?
phani kon
Ranch Hand

Joined: Apr 06, 2005
Posts: 251
Is it possible or not?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Try it and you will find that it is possible to do! LOL

If you find that you are having trouble, it maybe that you are calling it before the page has rendered. You can solve that problem by calling with the page onload event.

Sorry if I sound rude, but if you would have tried it you would not have had to ask this question!!

Eric
phani kon
Ranch Hand

Joined: Apr 06, 2005
Posts: 251
I have tried it, but it is not doing.
What is the other possible solution?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
quick example:



Hope this helps

Eric
phani kon
Ranch Hand

Joined: Apr 06, 2005
Posts: 251
thanks
 
wood burning stoves
 
subject: button