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
posted
0
you could do the following: var flag=true; function onClickButton1() { . . . t=false; . . . } function onClickButton2() { if (flag) { . . . } }
subject: disable button in NETSCAPE using javascript