Hello this is a simple tutorial which shows how to add a popup window using javascript Add the below javascript code on your webpage.

<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;
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
// end script here -->

Now use this code to call the javascript function

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

Here we are passing 2 arguments one is width which is 710 and height 548. You can customize those accordingly.

Leave a Reply

Your email address will not be published. Required fields are marked *