I would rather write it like this (note the single quotes as well...):
<AREA shape="rect" coords="220,0,310,23" href="#"
onClick="window.open('download.asp','n','HEIGHT=300,WIDTH=200'); return
false">
/Robert
-----Original Message-----
From: Dan Caron [mailto:dancaron@w...]
Sent: den 7 november 2001 15:39
To: javascript
Subject: [javascript] window.open problem
Hi and thanks for your help in advance. Below is some code which uses an
image map to link web pages to a target frame called "ViewFrame". The last
example opens a new window and this is where my problem is. A new window
is created but the HEIGHT and WIDTH attributes are not detected. The new
window that is opened is always the same size as the parent window. Does
anyone know how to pass these attributes within an <AREA> tag or some
other alternative. Thanks
<TD width="450" height="25" align="center">
<IMG SRC="images/buttons/buttonview.gif" name="ViewImg" border=0
"#ViewMap">
<MAP name="ViewMap">
<AREA shape="rect" coords="0,0,67,23" href="loginrequest.asp?mode=3d"
target="ViewFrame" onClick="ViewImg.src=image1.src;this.blur()">
<AREA shape="rect" coords="67,0,133,23" href="loginrequest.asp?mode=2d"
target="ViewFrame" onClick="ViewImg.src=image2.src;this.blur()">
<AREA shape="rect" coords="133,0,220,23" href="viewdatasheet.asp"
target="ViewFrame" onClick="ViewImg.src=image3.src;this.blur()">
<AREA shape="rect" coords="220,0,310,23" href="download.asp"
target="window.open("","n","HEIGHT=300,WIDTH=200")">
</MAP>
</TD>