The moose likes HTML, CSS and JavaScript and the fly likes disable button in NETSCAPE using javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "disable button in NETSCAPE using javascript" Watch "disable button in NETSCAPE using javascript" New topic
Author

disable button in NETSCAPE using javascript

srinivas bolloju
Ranch Hand

Joined: Jan 23, 2001
Posts: 112
hi,
i have a jsp/html page, in that i have two buttons. lets say b1 and b2,both buttons are doing diff functions.
onclick of b1 i'm calling a javascript-function where i wanna "diable b2(button2)" - IN NETSCAPE ,im getting that in IE,but i want that in netscape.
can anybody help me for that piece of javascript.


please use the [code][/code] tags when showing code. visit <a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=ubb_code_page" target="_blank" rel="nofollow">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=ubb_code_page</a> ,for more details
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 411
you could do the following:
var flag=true;
function onClickButton1()
{
. . .
t=false;
. . .
}
function onClickButton2()
{
if (flag)
{
. . .
}
}
 
 
subject: disable button in NETSCAPE using javascript
 
developer file tools