weird behavior w/ window.open()

wxdqz

New Member
Can someone explain the difference between the two and why the link version doesn't work and after I click on it [object] appears on the page and I have to "go back" to see the calling page.
The button works as intended. Here is copy of the HTML
-------
<html>
<head>
<title>Untitled Document</title>

</head>

<body>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:window.open('http://www.yahoo.com');">test</a><br>
<input type=button value=http://www.webdeveloper.com/forum/archive/index.php/"Open Window" onClick="javascript:window.open('http://www.yahoo.com');">
</body>
</html>
----------------------
 
Back
Top