Monday, 3 March 2014

Pop up window in javascript

<script language="javascript" type="text/javascript">

function popitup(url) {
newwindow=window.open(url,'name','height=500,width=500');
if (window.focus) {newwindow.focus()}
return false;
}


</script>
<a href="index.php" onclick="return popitup('index.php')">Link to popup</a>

Live Demo

No comments:

Post a Comment

Thank your for your comment..your submitted coment will be live after admin approval