You Are Here: Home »   Code Tuesday January 6th 2009

Code Library - js

Popup Window - (1325 views)


<!--

To create a link that opens a popup use something like:

<a href="javascript:PopUp('page.html','page_name','scrollbars=yes, resizable=yes,width=450,height=220')">click here</a>

You can edit the size of the popup in that line, and if you wish change the other values (scrolbars, resizable)

-->

<script language="javascript">
<!--
function PopUp (url,name,stuff)
{
    popupWin = window.open (url,name,stuff);
    popupWin.opener.top.name="opener";
    popupWin.focus();
}
-->
</script>