Powered by InterCreatives | Site Map
Search:
NewSourceMedia Popular Tutorials: PHP Javascripts Web Hosting
SoftwareTutorials
CATEGORIES
Job Listings
 
Home / Javascripts / Window Effects

Center Popup Window

Published by: Bob Newben


Javascript Center Popup Window:

=======================

<script language="javascript" type="text/javascript">
var win= null;
function OpenNewWindow(mypage,w,h,myname){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
settings='height=' h ',width=' w ',top=' wint ',left=' winl ',scrollbars=no,toolbar=no'
win=window.open(mypage,myname,settings)
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
// end script here -->
</script>

<a href="#" onclick="OpenNewWindow('http://freepennysaver.com/','710','548','Loading');" > Popup </a>

=======================

Test the code here Popup

Be sure to change the url "freepennysaver.com" to your url.

Next Javascripts Page:
1  2  3  4  5  6  7  [8]  9  10  11  12 





Hosting by iPowerWeb.com - 50 Gb for $7.95