window or self .close() should be enough.
So you are getting some kind of alert window? What are the details? You shouldn't be getting any alert window under normally opened windows. I think I know what you are referring to however.
Try the following javascript
:
window.opener = top; window.close();
I think the problem lies with when the browser sees window.opener == null. It recognizes this as the topmost window and prompts for close confirmation. By setting the opener, you trick it so it doesn't prompt.
-
Peter