Opening New Windows with Java Script
Java script
allows for much more control and options for opening windows
than html. You can control the contents of the window , the
window size (height & width properties); the position on
the browser screen; and whether or not the nw window will have
toolbars (and which ones), a menu bar, and a status bar.
New windows
created using the TARGET property will draw their appearance
(toolbars, menu bars, scroll bars, etc.) from the apperance
of the main browser window.
Creating
new windows with Java Script
Use the command
window.open("Your URL", "WindowName","FeatureList")
Your
URL = is the url of the page to be displayed in the window
Window Name = is the target name assigned to the window..You
use this name to call the window.
FeatureList = Include all the features from the list
below that you want to use.
Controlling Pop-up Window Features
To define the width and height of the pop-up window,
add the following in the features list in the
window.open()method:
"width=x, height="y"
where x and y are the width and height of the window, in pixels.
To set the screen position of the pop-up, add the feature:
"left=x, top="y"
where x is the coordinate of the left edge and y
is the coordinate of the window's top edge.
in pixels
To display the directory buttons, location box, menu
bar, scroll bar, status bar, or toolbar, add the features:
"directories=value, location=value, menubar=value, scrollbars=value,
status=value, toolbar=value"
where value is either "yes" (to show) or "no"
( to hide) You can also use the value "1" for yes
"0" for no
testing popup window