View Single Post
Old 03-07-2004, 07:33   #1 (permalink)
dee-dubs
Registered User
 
Join Date: Jul 2004
Posts: 15
Javascript pop up help

Sorry if this is a real dumb question, i have done some searching on the net and cant seem to find a solution for this script

i have a bunch of pages that are all pop ups and i just want to place a link in them changes the main (parent) window.

the popup script is:

<script type="text/javascript">
//<![CDATA[
function popup(url,windowname,width,height) {
width=(width)?width:screen.width/3;
height=(height)?height:screen.height/3;
var screenX = (screen.width/2 - width/2);
var screenY = (screen.height/2 - height/2);
var features= "width=" + width + ",height=" + height;
features += ",screenX=" + screenX + ",left=" + screenX;
features += ",screenY=" + screenY +",top=" + screenY;
var mywin=window.open(url, windowname, features);
if (mywin)
mywin.focus();
return mywin;
}
//]]>
</script>

any javascript gurus know what it is i need to add or put in my link to sort this??

cheers

d
  Reply With Quote