PDA

View Full Version : Simply opening windows


Awesomesteveh
12-18-2001, 12:42 AM
<script language=javascript>
<!--
var window=window.open(var window=window.open("http://www.ewplanet.com","window", "width=345,height=150,resizable");
//-->
</script>


<a href=http://www.ewplanet.com target="window">Ewplanet</a>

Why doesn't this work

whkoh
12-18-2001, 02:03 AM
Try this:
<a href="#" onClick="MyWindow=window.open('http://www.ewplanet.com','WindowName',resizable=yes,width=345,height=150'); return false;">Ewplanet</a>

Jon Hanlon
12-18-2001, 04:29 PM
The window object is the default object in Javascript, so I'd steer clear of naming anything window (or document, or location, or screen, etc.)