kalaverdy
05-23-2005, 09:29 AM
I need, when i clicking on link, new separate window opened at center of screen. How can i do that?
|
Click to See Complete Forum and Search --> : separate window at center of screen kalaverdy 05-23-2005, 09:29 AM I need, when i clicking on link, new separate window opened at center of screen. How can i do that? A1ien51 05-23-2005, 10:07 AM function PopUp(xPopUpUrl){ var intWidth = 400; var intHeight = 300; var ScreenWidth=window.screen.width; var ScreenHeight=window.screen.height; placementx=(ScreenWidth/2)-(intWidth/2); placementy=(ScreenHeight/2)-((intHeight+50)/2); winPop=window.open(xPopUpUrl,"","width="+intWidth+",height="+intHeight+",resizable=1,left="+placementx+",top="+placementy+",screenX="+placementx+",screenY="+placementy+","); } webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |