Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why doesn't this code work in Opera?

Status
Not open for further replies.

g8z

Programmer
Dec 18, 2001
12
US
Can anyone tell me why this code doesn't work in the Opera browser? It's supposed to open a tiny pop-up window when the browser is closed.

URL:
Here's all the code from the html file:

<body onUnload=&quot;logoff();&quot;>

When you close this window, CNN will open in a very tiny window.


<SCRIPT LANGUAGE=&quot;Javascript&quot;>

function logoff() {
window.open( ' 'POPUP', 'toolbar=no,scrollbars=no,width=1,height=1' );
}

</SCRIPT>

</body>
 
What version of Opera are you running? It works form me in 6.05-Win32. ______________________________________________________________________
TANSTAAFL!
 
I'm using version 6.13, build 1107 on Windows XP.
 
Correction: the version I have is 6.03, not 6.13.
 
It works if pop-up blocking in not turned on.
Check it with F12 > Accept/Refuse pop-up windows at the top.
When you chose &quot;Refuse pop-ups&quot; Opera doesn't execute any window.open() code.

By the way, that's why Opera is my choice - I can control everything there. Pop-ups blocking is one of them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top