H
Harry
Whats wrong with this?
top.document.frmMain.tabMain.border = "1";
thanks
top.document.frmMain.tabMain.border = "1";
thanks
Harry said:Whats wrong with this?
top.document.frmMain.tabMain.border = "1";
how would I do it then? - what am I missing?
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
kaeli said:If the table is named tabMain (<table id="tabMain">)
if (document.getElementById && document.getElementById("tabMain").style)
{
document.getElementById("tabMain").style.border = "1";
You don't need "top" unless you're using frames, in which case you need
the frame name as defined in the frameset.
[email protected] enlightened us said:That is unlikely to work, since "1" is not a valid CSS value for the
border property.
kaeli said:How WOULD you set the border to 1? I stick to DIVs mostly, which would
be like...
document.getElementById("tabMain").style.border="thin solid black";
I don't think that would set the borders for the cells, though, just the
table. It would look different than having border be "1" in the table
def...
[email protected] enlightened us said:Yes. I never used the border attribute, so I would go for a CSS solution:
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.