In article <2d*********************@news-text.cableinet.net>,
a@abc.com
enlightened us with...
sorry, target browsers are ie 5.5 & netscape 7
I want the user to be able to click on a checkbox which will using
javascript show/hide the border of a table
thanks
If the table is named tabMain (<table id="tabMain">)
if (document.getElementById && document.getElementById("tabMain").style)
{
document.getElementById("tabMain").style.border = "1";
}
else alert("You need a better browser.");
You don't need "top" unless you're using frames, in which case you need
the frame name as defined in the frameset.
if (top.frames["frameName"].document.getElementById && top.frames
["frameName"].document.getElementById("tabMain").style)
{
top.frames["frameName"].document.getElementById
("tabMain").style.border = "1";
}
else alert("You need a better browser.");
-------------------------------------------------
~kaeli~
Jesus saves, Allah protects, and Cthulhu
thinks you'd make a nice sandwich.
http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------