PDA

View Full Version : place/ location of pop window


jabart
10-02-2002, 08:48 PM
greetings to all of you.
i am looking to place my popup window in a different pos. than top and left. how do i create these variables? how do i change the position or place where the popup window loads to in the browser?
i appreciate all or any help,
thanks,
jabart

zoobie
10-02-2002, 09:13 PM
Because placing the window absolutely will display differently @ different resolutions, use the search here for "center window" or "center pop-up" or Hotscripts/DynamicDrive. :D

townbum
10-04-2002, 05:38 PM
<script>

// Place this script in the <head> of your page.

function doPopUp(){
doPopUpWindow = window.open("http://"your url,"popup name","left=300,top=116,screenX=300,screenY=116,width=300,height=400");
}

</script>

-------------------------------
put this in the body of your page;

<a href="javascript:doPopUp()">pop-up</a>