HTML Javascript popup window
<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname) {
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string'){
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=400,height=200,scrollbars=yes');
return false;
}
}
//-->
</SCRIPT>
<A HREF="popupbasic.html" onClick="return popup(this, 'notes')">my popup</A>
References:
http://www.htmlcodetutorial.com/linking/linking_famsupp_72.html
Posted: May 30th, 2008 | Author: admin | Filed under: Code Reference | No Comments »


Leave a Reply