Click to See Complete Forum and Search --> : Close window with frames.


neil9999
10-18-2003, 03:16 PM
Hi,

I have a normal browser window with a frames page in it. A problem, if I put <button onclick="window.close()"> in one frame, when you click the button it doesn't close the window. Is it possible to close a window with a frames page in? I don't mind if a box pops up asking me if I want to close the window.

Thanks,

Neil.

requestcode
10-18-2003, 03:18 PM
Try parent.window.close()

or top.window.close()

neil9999
10-18-2003, 03:34 PM
Thanks very much. Both worked a dream.

Thanks,

Neil