PDA

View Full Version : window.open


pankaj
03-17-2003, 11:28 AM
I want to open a window which does not display any toolbars.

I tried this

function NewWindow()
{
window.open("NewWin",,"fullscreen")
self.close()
}


but I get a msgbox saying "dou want to close this window".
I dont want the msgbox.

Is their any other way. I dont want 2 windows to remain open.

ez4ne12c
03-17-2003, 12:22 PM
This is a bit tricky cause there are security issues involved here
if you open the fullscreen window, you can close it from the parent,

however you will get a dialog if you try to open the full screen then close the opener.

Thats to protect me the user cause you wants to take away my browser controls by opening a fullscreen and ditching my current browser window. The dialog is a good idea, why do you want to close the opener?
ez

fshiu
03-17-2003, 01:00 PM
If you want to close the window opener:

<script>
window.opener=null
window.close()
</script>

pankaj
03-19-2003, 09:06 AM
Thanx fshiu. Can I have only the minimize button enabled in the new window?