Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Re: Parent windows


Message #1 by "Faith Warren" <fwarren@p...> on Fri, 7 Jun 2002 17:59:52
Parent Window below opens a pop up window (this does not work in Netscape 
for some reason);

<script language="JavaScript">
    <!--
        window.name = "wndParent";
    //-->
</script>
  <script language="JavaScript">
  
<!--
function MM_openBrWindowPosition(theURL,winName,features) { //v2.0
	var win_position = ',left=300,top=300,screenX=300,screenY=300'
 	var newWindow = window.open(theURL,winName,features+win_position);
	newWindow.focus();
}
function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
//-->
</script>

-------------The below HTML is the POP-UP window---------------------------

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>Track your order!</title>

</head>
<body BGCOLOR="#ffffff" MARGINHEIGHT="0" MARGINWIDTH="0" TOPMARGIN="0" 
LEFTMARGIN="0">

<img src="images/track1.gif" width="640" height="132" alt="" border="0" 
usemap="#track"><map name="track">
<area alt="USOC Commemorative Olympic Collection" coords="10,11,227,122" 
href="../usaoly/comm.asp" target="wndParent" onClick="self.close();">
<area alt="Kids Summer Camp Gear!" coords="245,11,397,123" 
href="../kids/store.asp" target="wndParent" onClick="self.close();">
<area alt="Track Your Roots Order Online!" coords="445,92,610,117" 
href="../OrderStatus.asp" target="wndParent" onClick="self.close();">
</map>
</body>
</html>

  Return to Index