-
mentally unstable member
Can anyone tell me how to close the browser window using javascript when the user presses an exit button?
Thanks
Scott
-
Firmly Fastened to the Milk Sac of Misanthropy
I can help you out, but I need a wee bit of info:
Is the flash movie embedded in an HTML page, or is it a pop-up browser window opened from a parent HTML page (using window.open ('http://yaddayadda.com/movie.swf'...etc)?
(sorry, that is hard to explain)
Sem.
-
Firmly Fastened to the Milk Sac of Misanthropy
html
Open notepad and type this:
<HTML>
<HEAD><TITLE>Window Closer</TITLE></HEAD>
<BODY ONLOAD="self.close()">
</BODY>
</HTML>
Save the document as closer.html.
On exit button, give this action:
On (release) {
getURL ("closer.html");
}
Put the HTML in the same directory as your SWF file and original HTML
Sem
-
mentally unstable member
Sem
Thanks heaps. I didn't think it was quite that simple but it works like a charm.
Scott
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|