PDA

View Full Version : Pop-Up Window Problem


sir sixx
09-20-2002, 10:26 AM
Hi all,

I don't know if you'll be able to help me. I have tried posting this at a Flash forum but they had no idea what the problem is, so I thought I'd try here.

In a flash movie I have 5 buttons, each one links to a different subject. When you click the button a JavaScript pop-up window opens with the required information on that subject. Fairly simple stuff.

My problems is that if you press button 1 and then close the pop-up window and then press button 2 the browser either crashes or opens a blank pop-up window which sits there trying to load the html page that should be displayed in that window and it also clears the main html page of its contents, the address bars in both browser windows show the JavaScript that’s attached to the flash button.
The strange thing is that it only happens in IE6 on windows 98, I've even tried loading SP1 for IE6 and it still does the same thing. When I run the page on IE4 or IE6 on Windows XP it works fine.

This is my code:

on (release) {
getURL("JavaScript:NewWindow=window.open('ppp.html','PFP','width=450,height=380,left=100,top=100,tollbar=No, location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');NewWindow.focus();void(0);");
}
I've also tried putting the JavaScript into the main time line of my Flash movie as a function and then calling the function from the button but it does the same thing.

Should I be giving each pop-up a different name and not NewWindow every time?

I really need help here..... please.

Thanks

beetle
09-20-2002, 03:55 PM
Try changing your javascript to this, and let me know how it works

javascript:var NewWindow=window.open('ppp.html','PFP','width=450,height=380,left=100,top=100);NewWindow.focus();