PDA

View Full Version : on load event window.open not working


robkovacs
12-20-2002, 09:28 AM
Hi I have a client who has the following problem with windows XP based web visitors.

In the <body> tag a javascript function is called which loads an new window using window.open.

The problem is that for some users with windows xp the window is not opened. I haven't been able to re-produce the problem myself but according to the help desk the clients have not disabled javascript or popups.

The body tag is coded as follows:

body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="MM_openBrWindow('https://Page.to.be.opened.html+ lang +'.html','adsdf','width=790,height=560');">

The MM_openBrWindow function is as follows:

function MM_openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}

By the way the java script section is declared as follows:

<script language="JavaScript">

Could this have an impact?

Thanks in advance for any help

ACJavascript
12-20-2002, 08:12 PM
the only thing that i would try to change is JavaScript to javascript.
I don't think it will make a difference though,, but hey ya never know lol :D

joeframbach
12-20-2002, 08:33 PM
put a quotation here ----------V
('https://Page.to.be.opened.html' + lang +'.h