cactus1000
Programmer
I have a link that needs to do the following with one click:
1. open a page in my right frame, and find a named anchor.
2. run some javascript contained in the page.
Ive tried this:
<a href="javascriptarent.right.location='deadlines.html#sir';parent.right.openandclose(0)">
and this:
<a href="deadlines.html#sir" target="right" onClick="javascriptarent.right.openandclose(0)">
However both of these methods require a second click before the javascript executes.
I think the problem with the second method is that the onClick happens before the href navagation. But what's wrong with the first example?
1. open a page in my right frame, and find a named anchor.
2. run some javascript contained in the page.
Ive tried this:
<a href="javascriptarent.right.location='deadlines.html#sir';parent.right.openandclose(0)">
and this:
<a href="deadlines.html#sir" target="right" onClick="javascriptarent.right.openandclose(0)">
However both of these methods require a second click before the javascript executes.
I think the problem with the second method is that the onClick happens before the href navagation. But what's wrong with the first example?