Hi guys
I recently added a popup HREF script to a page, but I'd also like to make the page itself change when the HREF command is clicked. When the user clicks, not only would the popup window appear, but the originating page would change to another as well.
I thought it'd be a rather straightforward proposition, but I can't seem to get the syntax right. I tried using onClick and adding the second command after a semicolon, neither of which worked.
First, here's the HREF as it now appears:
<A HREF="javascript:newWindow4('play/ep01a.html')" onMouseOver="window.status='popup'; return true" onMouseOut="window.status=''; return true">
You'll notice that it calls an external script variable (newWindow4) which defines the nature of the popup.
Here are a couple of things I unsuccessfully tried to make the page change as well:
<A HREF="javascript:newWindow4('play/ep01a.html')" onClick="location.href='ep01.html'" onMouseOver="window.status='popup'; return true" onMouseOut="window.status=''; return true">
<A HREF="javascript:newWindow4('play/ep01a.html');window.location = "ep01.html"" STYLE="text-decoration: none" onMouseOver="window.status='popup'; return true" onMouseOut="window.status=''; return true">
Neither allows even the original script to run.
Basically, here' what I want it to do:
run newWindow4
change page to ep01.html
Any idea how I can make this link work?
Wolfman