views:

19

answers:

1

I have a some javascript that calls is calling for a popup (media player) to load. That works But I want the parent page to close or not even appear to have opened. This works great in Firefox.

Code is:

window.open("radio.html","Levante_Radio_Live","width=323,height=281,scrollbars=no,menubar=no,location=no",); window.close();

A: 

Your JS is fine, but I think you are running into a security feature of IE. It alerts the user that JS is trying to close the window, and requires another "yes" dialog box click. Not sure there is a way to get around that with a main window. This works for popups because the browser knows your page opened it, so it doesn't prompt you in that case.

Steve