Careers BNL home  

Adding Pop-up Windows

The information below should only be used by web authors who have web scripting knowledge and hand-coding experience. All others should contact the ITD Helpdesk for support. Please note, Javascript must be enabled in the user's browser for pop-up windows to work.

Press the button below to see if you have JavaScript enabled. If nothing happened, then it is possible that JavaScript is disabled on your browser. You will need to enable JavaScript to use some functions of this page.


 

Universal Pop-up Window

The function shown below is already available in all BNL Standard Templates and does not need to be added into the <HEAD></HEAD> of your web page. The <Function> code is shown for informational use only.

Function:
<head>

<script Lanaguage="JavaScript">
function cPop(url, tb, scroll, locate, status, menu, resize, wide, high)
{window.open(url, "popup", 'toolbars=' + tb + ', scrollbars=' + scroll + ', location=' + locate + ', statusbars=' + status + ', menubars=' + menu + ', resizable=' + resize + ', width=' + wide + ',height=' + high);
}
</script>
</head>

URL Code:
<a href="JavaScript:cPop('lorem.asp',0,1,0,0,0,0,450,250)">Test Window</a>

Pop-up Window (Single Use)

The function shown below must be put in the <HEAD></HEAD> of your web page to work.

Function:
<head>

<script Lanaguage="JavaScript">
function popupWindow()
{
window.open('lorem.asp', 'poppage', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=0, width=450, height=250');
}
</script>
</head>

URL Code:
<a href="JavaScript:popupWindow()">Test Window</a>

 

Top of Page

Last Modified: April 6, 2009
Please forward all questions about this site to: Web Services