Here’s a simple but flexible javascript popup function. This effect is known as a chromeless window. This usually means that the window is resized and the browser features (nav buttons, address field, scrollbars, resize handle, and favorites) are hidden.
Javascript Source Code:
<script language="javascript"> < !– var openwin; function popupwin(url,myname,w,h,s) { settings='height=' h ',width=' w ',scrollbars=' s ',toolbar=no,location=no,status=no,menubar=no, resizable=no,dependent=no' openwin=window.open(url,myname,settings); }// –> </script>
HTML Source Code:
<p> Click here to <a href="#" onClick="popupwin('mypage.php','Loading','300','300','yes');"> Open Popup Window</a> the pop up. </p>