fwstealer
asked on
onload new browser window
hello, I'm trying to open a new browser window when a web page is requested. see my code below. Currently, the page just performs a redirect in the same tab under ie8. how do i get this to work?
<html>
<head>
<title></title>
<SCRIPT language="JavaScript1.2">
function poponload()
{
testwindow= window.open ("http://www.google.com");
}
</SCRIPT>
</head>
<body onload="javascript: poponload()">
my page - new browser will open onload
</body>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
error on page:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.30618)
Timestamp: Wed, 27 May 2009 16:24:25 UTC
Message: Invalid argument.
Line: 8
Char: 1
Code: 0
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.30618)
Timestamp: Wed, 27 May 2009 16:24:25 UTC
Message: Invalid argument.
Line: 8
Char: 1
Code: 0
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER