[Javascript] Problem with variable tag
LARSENL1 at Nationwide.com
LARSENL1 at Nationwide.com
Mon Jul 30 11:46:31 CDT 2001
Hi. I am new to the list. I am attempting to pop a new window from my web
site, and the pop up opens two windows instead of one. I get the window
that I am calling and I also get a new window with one of my frames. Here
is the script I am using (including the html code):
<html>
<SCRIPT LANGUAGE="JAVASCRIPT"><!-- hide
//--------------------------------------------------
// Copyright Reaz Hoque, 1996, All right reserved
// This code can be used for non-profit use only if
// the copyright notice is kept.
//---------------------------------------------------
function customize(form) {
var address
= "http://ecentertest.allied.nwie.net/CommercialLines/Toolboxbuttons.htm";
var op_wid = "1000";
var op_heigh = "50";
var option = "width="
+ op_wid + ",height=" + op_heigh;
var win3 = window.open("", "what_I_want", option);
var win4 = window.open(address, "what_I_want");
}
// done hiding -->
</SCRIPT>
<body LINK="black" ALINK="black" VLINK="black">
<div align="left">
<table width="100%"><FORM name="form1" METHOD="POST">
<tr>
<td><img src="Pix/Logo.jpg"></td>
<td><img src="Pix/CommlinkBanner.jpg" width="572" height="78"></td>
<td><INPUT TYPE="Image" src="toolbox.jpg" OnClick=
"customize(this.form)"></td>
</tr>
<tr>
<td><p align="center"></td>
<td colspan="2"><div align="left">
<table border="0" cellspacing="1" cellpadding="3">
<tr>
<td valign="middle" align="center"><strong><a href="default.htm"
target="_parent"><font face="Arial" size="2">Home</font></a></strong></td>
<td valign="middle" align="center"><strong><a href=
"Actuarial/ActuarialFrame.htm" target="_parent"><font face="Arial" size="2"
>Actuarial</font></a></strong></td>
<td valign="middle" align="center"><strong><a href=
"Automation/AutomationFrame.htm" target="_parent"><font face="Arial" size=
"2">Automation</font></a></strong></td>
<td valign="middle" align="center"><strong><a href=
"LossControl/LossControlFrame.htm" target="_parent"><font face="Arial" size
="2">Loss Control</font></a></strong></td>
<td valign="middle" align="center"><strong><a href=
"Underwriting/UnderwritingFrame.htm" target="_parent"><font face="Arial"
size="2">Underwriting</font></a></strong></td>
<td valign="middle" align="center"><strong><a href=
"Production/ProductionFrame.htm" target="_parent"><font face="Arial" size=
"2">Production</font></a></strong></td>
<td valign="middle" align="center"><strong><a href=
"People/PeopleFrame.htm" target="_parent"><font face="Arial" size="2">
People</font></a></strong></td>
<td valign="middle" align="center"><strong><a href=
"Links/LinksFrame.htm" target="_parent"><font face="Arial" size="2">Links
</font></a></strong></td>
<td valign="middle" align="center"><strong><a href=
"ContactUs/ContactUsFrame.htm" target="_parent"><font face="Arial" size="2"
>Contact Us</font></a></strong></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</FORM>
</div>
</body>
</html>
Can anyone tell me what is wrong? Thanks so much.
LeAnn
More information about the Javascript
mailing list