Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
design_guy webforumsuser@macromedia.com #1
Close Browser and Change URL - HELP!
Hi all,
Here's my situation:
I have a URL with a link that:
1. Opens a new browser window, in which reside an SWF movie.
2. At the end of the movie I have a button that closes the bowser window
My question:
Once the window is closed, is there a way (via actionscript or any other way for that matter) to change the URL in the original parent window?
Any help is appreciated. Many Thanks!
design_guy webforumsuser@macromedia.com Guest
-
SESSION and browser close
I have written a shopping cart application which kills all SESSION vars when the browser is closed. However, despite it working correctly on my... -
close all browser windows?
Does anyone know of any javascript or other method to close all open browser windows? I have an issue where a user logs in to our intranet through... -
close my project that is in a browser window (close this window)
How can I do this with a button? What do I have to put into button? -
Browser Close Event
which event is fired when a browser is closed. i want to call asp page which deleet some files on the server. i tired using onunload event but it... -
How to close the browser down ?
Good evening all. I know how to close the browser down when there is no frames involved. I have a frameset aspx page. It has 3 frames, left, main... -
nITiNkIlLeRmEeRuT webforumsuser@macromedia.com #2
Re: Close Browser and Change URL - HELP!
<HEAD>
<script language="JavaScript">
function redirectParent()
{
var ns4 = document.layers;
var ns6 = document.getElementById && !document.all;
var ie4 = document.all;
if(ns4) URLStr = "target url";
else if(ns6) URLStr = "target url";
else if(ie4) URLStr = "target url";
else URLStr = "target url";
parent.location = URLStr;
}
</script>
</HEAD>
<BODY onUnload="redirectParent()">
<input type="button" value="Close" onClick="self.close()">
</BODY>
I have no time to test this script.
Nitin
nITiNkIlLeRmEeRuT webforumsuser@macromedia.com Guest



Reply With Quote

