cactus1000
Programmer
I need the following to happen with a single click:
1. navigate to new page (with named anchor)
2. run javascript.
here's what I have so far:
<a href="deadlines.html#slr" target="right" onClick="javascriptarent.right.openandclose(1)">
The problem (I think), is that the onClick event triggers before the href navigation. Since the navigation hasn't occurred yet the script can't execute.
This works if I click on the link twice, but that won't do. I need both things to happen with a single click.
Any ideas?
1. navigate to new page (with named anchor)
2. run javascript.
here's what I have so far:
<a href="deadlines.html#slr" target="right" onClick="javascriptarent.right.openandclose(1)">
The problem (I think), is that the onClick event triggers before the href navigation. Since the navigation hasn't occurred yet the script can't execute.
This works if I click on the link twice, but that won't do. I need both things to happen with a single click.
Any ideas?