Resources - For Developers
================STEP 1 - COPY CODE BELOW INTO HEADER=======================
<SCRIPT LANGUAGE="JavaScript">
<!--
var NS = (document.layers);
var IE = (document.all);
var popup
if (IE)
{
popup = null;
}
function new_window(s,w,h)
{
var w=w+0;
var h=h+0;
var halfWidth = ((screen.width / 2) - (w / 2));
var halfHeight = ((screen.height / 2) - (h / 2));
if (NS)
{
popup = null;
}
if (popup != null && !popup.closed)
{
popup.close();
}
popup =
window.open(s,'popup','toolbar=no,title=no,location=no,directories=no,
status=no,menubar=no,scrollbars=no,resizable=no,
width='
+ w + ',height=' + h + ',top=' + halfHeight + ', left=' + halfWidth + '');
popup.focus();
}
// -->
</SCRIPT>
================STEP 1 - COPY CODE ABOVE INTO HEADER=======================
================STEP 2 - COPY CODE BELOW INTO THE BODY=====================
<a href="javascript:new_window('resources_fordevelopers-popup.html',200,185)">Pop</a> OR
<FORM>
<INPUT TYPE="button" VALUE="POP" onClick="javascript:new_window('resources_fordevelopers-popup.html',200,185)" NAME="button">
</FORM>
================STEP 2 - COPY CODE ABOVE INTO THE BODY=====================
INSTRUCTIONS
- Step 1 - Paste Step 1 code inside header <HEAD></HEAD> of HTML page
- Step 2 - Paste Step 2 code inside <BODY></BODY> of HTML page
DESCRIPTION
- Checks the existence of an already open window, and closes it first, before
reopening another pop-up.
|