Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove radio button in Netscape w/o reloading?

Status
Not open for further replies.

Delton

MIS
Aug 4, 1999
15
US
Hi,

I have been looking all over the net to find an answer. Can I remove a radio button with a statement after onclick, in Netscape 4.7/6? I have tried to add visible=false but that did not work. I am new to java script.


Thanks

Delton
 
post some of your code : where did you put the call to visible=false ? (and actually i think the correct ns syntax is more visible=hide (i don't remember the 1st part and don't have time to look for it, but for sure someone else has the answer here !!!))
what is not working, do you get an error message ?
 
onclick="answer(this.form);window.print();visible=hide;">
I tried changing the syntax to hide and got the same result. I don't actually get an error, but the button doesn't disappear.
 
I tried this.visibilty="hide"; and it didn't work. I ran weblint and it said "hide" was a unknown attribute for element input..?
 
I know visibility is an IE thing.. I may find another way .. I'll let you know.

Marc
 
i dont know if it works for anything other than layers in NS, but, to make a layer hidden in ns i think you use layername.visibility = 'hide';

adam@aauser.com
 
The correct sytnax to hide an element in netscape is:

document.layers.layername.visibility="hide"

(I have tested "hidden" here as well in NS4.7 so I would use that for compatibility)

It is true that you can only layers in NS. jared@aauser.com
 
Many thanks to all for the help, I think I will follow the advice on IE4&NS6..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top