Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Close an animation window and change URL of master window

Status
Not open for further replies.

Bassbug

Programmer
Dec 8, 2001
5
GB
We have knocked up a Flash animation and need to get a button to close the animation window and open the next url in the (master) browser from which the animation was launched.

Also, how do we get the necessary code into place?

Can anyone give us a steer here?
 
<a href=&quot;javascript: opener.location.href = 'your new url here'; self.close()&quot;>Close this window</a>

this was not tested, but shoudl work.
instead of &quot;close this window&quot; you can have an image there with a border of 0.
if you want a button, do
<input type=&quot;button&quot; name=&quot;CloseWin&quot; value=&quot;Close this window&quot; onClick=&quot;opener.location.href = 'your new url here'; self.close()&quot;> --------------------------------------------------
Goals are dreams with deadlines
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top