nntp wrote:
<a id="hiddenLink1" name="hiddenLink1" href="page1.htm"
target="someTarget1" >1 </a>
<a id="hiddenLink2" name="hiddenLink2" href="page2.htm"
target="someTarget1" >2 </a>
<A href="javascript:donothing();"
onClick="hiddenLink1.click();setTimeout('hiddenLin k2.click()',2000);">open
two</A>
works in Opera and IE, but not in NS. In NS, it has no action at all.
I tried document.links['hiddenLink1'].click(); IE gave me error, object
document.link.hiddenLink1 can not be empty.
You don't need it to click the link. Try:
<A href="#"
onclick="
location = document.getElementById('hiddenLink1');
setTimeout('location=document.getElementById(\'hid denLink2\')',2000)
;">open 1</A>
Incidentally, the setTimeout will not work (I think)
because you navigate to the first link, so the page is
unloaded. You can't execute a script from a page that is
no longer in the browser (gee, wouldn't that really screw
with users's minds!! Isn't the unload function nasty
enough?)
Cheers, Rob