I thought this was going to be fairly simple but I can't seem to make it work. I have a table cell that I want to make the entire region clickable to a URL. I can get it to load the URL in a new window but cannot get it to load in the SAME window. Any ideas? Here's what I've got.
and in the body...
Thanks!
Lowell
Code:
<SCRIPT language="JavaScript" type="text/JavaScript">
<!-- name = 'mainwindow'; //-->
function loadurl(url) {
open(url, "mainwindow");
}
</SCRIPT>
and in the body...
Code:
<TABLE WIDTH=\"100%\">
<TR>
<TD CLASS="smbutton_normal" WIDTH="50%" onClick="loadurl('[URL unfurl="true"]http://www.domain.com')">OPTION</TD>[/URL]
<TD CLASS="smbutton_normal" WIDTH="50%" onClick="loadurl('[URL unfurl="true"]http://www.domain2.com')">OPTION2</TD>[/URL]
</TR>
</TABLE>
Thanks!
Lowell