Click to See Complete Forum and Search --> : close window and loading top frame depending on screen resolution


ptik
04-26-2003, 02:04 AM
Hello, guys! :)
I have two questions.
1. My web-page has frame structure. I need in button "close" in one of frames, i. e. browser close window when you click it.
2. At second, I want to load top frame depending on screen resolution. For example, browser load top1.html for 800*600, top2.html for 1024*768.

hoped to replies, ptik

Charles
04-26-2003, 05:44 AM
1. JavaScript cannot close a window that JavaScript did not open.
2. About one in ten users do not use JavaScript. You're much better off, and it's a lot less work, making one page that works on all screen resolution or with no screen at all.

ptik
04-26-2003, 06:38 AM
Yes, now I know JavaScript cannot close a window that JavaScript did not open but IE ask to confirm closing and do it!

May be someone know how to close without confirmation?

Now I use following code:

<a href = "#" onclick = "parent.window.close(); return false;">