Posted by: prajapatinilesh | September 20, 2007

center popup

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/&#8217;,’710′,’548′,’Loading’);” > Popup </a>
=======================

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: