Below are the main JavaScript attributes that can be used on opening a Popup window.
Important: some attributes only work for certain types of Internet browsers:
- MSIE indicates the attribute is compatible with Microsoft Internet Explorer browsers.
- NN indicates the attribute is compatible with Netscape Navigator (or Mozilla) browsers.
Attribute
|
Value type |
Explanation |
width |
Num |
Width of the window in pixels. (MSIE & NN) |
height |
Num |
Height of the window in pixels. (MSIE & NN) |
innerHeight |
Num |
Inner window height in pixels. To create a window smaller than 100 x 100 pixels, place this parameter in a signed script. This parameter replaces the height, which is conserved for backwards compatibility. (NN) |
innerWidth |
Num |
Inner window width in pixels. To create a window smaller than 100 x 100 pixels, place this parameter in a signed script. This parameter replaces the width, which is conserved for backwards compatibility. (NN) |
outerHeight |
Num |
Vertical dimensions of the outer margin of the window, in pixels. To create a window smaller than 100 x 100 pixels, place this parameter in a signed script. (NN) |
toolbar |
Bool |
Displays toolbar [toolbar is displayed or hidden]. (MSIE & NN) |
location |
Bool |
Displays address (or location) field. (MSIE & NN) |
directories |
Bool |
Displays quick access buttons. (MSIE & NN) |
status |
Bool |
Displays the status bar. (MSIE & NN) |
menubar |
Bool |
Displays the menu bar. (MSIE & NN) |
scrollbars |
Bool |
Displays scrollbars. (MSIE & NN) |
resizable |
Bool |
The window is resizable. (MSIE & NN) |
alwaysLowered |
Bool |
The window is always below all others, whether active or not. (NN) |
alwaysRaised |
Bool |
The window is always above all others, whether active or not. (NN) |
dependent |
Bool |
The window that is created is a child window which closes automatically when the mother window is closed. In Windows, it does not appear in the task bar. (NN ) |
hotkeys |
Bool |
If this parameter is set to "No", it disables most of the hotkeys for a new window which does not have a menu bar. The Save and Close hotkeys remain enabled. (NN) |
fullscreen |
Bool |
Full screen window, without menus, etc. (MSIE) |
ScreenX |
Num |
Shows the distance separating the new window from the left edge of the screen. (NN) |
ScreenY |
Num |
Shows the distance separating the new window from the top edge of the screen. (NN) |
top |
Num |
Shows the distance separating the new window from the top edge of the screen. (MSIE) |
left |
Num |
Shows the distance separating the new window from the left edge of the screen. (MSIE) |
titlebar |
Bool |
Checks whether the window contains a title bar. (MSIE & NN) |
z-lock |
Bool |
Checks whether the window is superimposed over other windows when activated. (NN) |
When the type is a Boolean, the value can be "yes" (or "1") or "no" (or "0").
Example:
ATTRIB_VAR = 'resizable=yes, status=yes, screenX=300, left=300, screenY=200, top=200, height=400, width=180'
PROCESS_PGM MY_PGM *POPUP(ATTRIB_VAR)