Link to home
Start Free TrialLog in
Avatar of fwstealer
fwstealerFlag for United States of America

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>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of middela1903
middela1903

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fwstealer

ASKER

still does a redirect - what is going on?
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

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial