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’,myname,settings)
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
// end script here –>
<a href=”#” onclick=”OpenNewWindow(‘;,’710′,’548′,’Loading’);” > Popup </a>


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s


%d bloggers like this: