Here's some code I did that does exactly the same thing you need.
I was tying into weather.com in a separate window. I also wanted to
point a link to the same window. (no form post). This is how I did
it: This seems to keep all your window settings and such. Hope it
helps
<script language = "JavaScript">
function weatherWindow(b_return){
window.open('http://www.weather.com?par=internal&code=244320&site=logo&promo
=english','win_Weather',
'height=480,width=640,resizable=yes,dependent=yes,scrollbars=yes,menubar=yes
,toolbar=no,hotkeys=no,status=no');
if (b_return){
return true;
}
}
</script>
<table>
<tr>
<td>
<a href="javascript:weatherWindow(false);"><img border=0
src="http://image.weather.com/pics/oap/slogo.gif"></a>
</td>
</tr>
<tr>
<td align="center" width=120>
<form method="post"
action="http://www.weather.com/cgi-bin/uncgi/zip_city_search.cgi?par=interna
l&code=244320 site=logo&promo=english" target = "win_Weather">
<table cellpadding=0 cellspacing=0>
<tr>
<td valign=center width=120 colspan=2>
<font face="Arial, Helvetica, Chicago, Sans Serif"
color="#004371"
size="2">Enter city or US Zip</font>
</td>
</tr>
<tr>
<td width="40" align="left" valign="bottom">
<input name="destination" type="text" size="8"
value="">
</td>
<td width="20" align="left" valign="bottom">
<input type="image"
src="http://image.weather.com/pics/button_go.gif"
width="26" height="23" border="0" alt="go!" value="Go City" onClick =
"return weatherWindow(true);">
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists