<!--Insert in Head Section-->
<!-- Scripts for Full screen popup-->
<script language="javascript" type="text/javascript">
<!--
winWidth = 400; // sets a default width for browsers who do not understand screen.width below
winheight = 400; // ditto for height
if (screen){ // weeds out older browsers who do not understand screen.width/screen.height
winWidth = screen.width - 2;
winHeight = screen.height - 100;
}
// this function calls a popupWindow where
// win is the page address i.e. '../page.htm'
// and must be specified when the function is called
function popupWindow(win){
newWindow = window.open(win,'newWin','toolbar=no,location=no,scrollbars=yes,resizable=yes,width='+winWidth+',height='+winHeight+',left=0,top=0');
newWindow.focus();
}
// -->
</script>
<!--Insert in Body-->
<a href="javascript:popupWindow('mypopup.html')">Click here</a>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.