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',myname,settings);
}// –>

HTML Source Code:

Click here to
<a href="#" onClick="popupwin('mypage.php','Loading','300','300','yes');">
Open Popup Window</a> the pop up.

Leave a Reply

Your email address will not be published. Required fields are marked *