all groups > macromedia flash sitedesign > july 2003 >
You're in the

macromedia flash sitedesign

group:

Javascripting


Javascripting jsmom
7/28/2003 12:10:15 PM
macromedia flash sitedesign:
I have a splash page that follows through to a html page. I wanted the html page to open maximized, so I entered this code on the last frame

window.open('testpage.htm','myExample5','width=200,height=200,directories=yes,location=yes,menubar=yes,scrollbars=yes,status=yes,toolbar=yes,resizable=yes');

On the html page that is being called (which is also Flash) I have a Quit button and its actions are this

on (release) {
getURL("javascript:window.close();");
}
Problem: When the user chooses the Quit button, I get the "...this window is trying to close" and all works fine, but after the window closes, the splash screen is still there.

I know I need additional coding on the splash screen to eliminate this, but if I add a window.close, I get the "...this window is trying to close" message. How can I bypass this so the splash screen will close as the new window opens.


Re: Javascripting DamonMath
7/28/2003 6:11:24 PM
The error message is a JavaScript security issue. It is warning you that a window created is being closed.

If javaScript initially opened the window, then it will close without a word. However if the window is the first window opened, or was opened by target _blank, you will get the JavaScript message.

No other way around it.

:(



AddThis Social Bookmark Button