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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

close document button

Status
Not open for further replies.

neobadlands

Programmer
Sep 2, 2000
24
DE
Hi,

I want to make a button, that, when hit, closes the HTML-Document in which the .swf is embedded. Like an exit button for the flash animation; to simple unload this particular movie wouldn´t do it , since it is in fullscreen mode, and I want to shut down the whole thing.

If anyone knows an answer, please tell me.
Thank you
neo
 
Use a GET URL action on a button, and instead of an HTML page, enter:

javascript:window.close;

That should close the window all right.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top