Beework Web Design Logo

  Search

  

Skype: beeworkweb
Email:info@beework.net

Sales (free):
0800 882 4173

Support:
0870 978 0583

Mobile:
07866 627185

Registered Member of the UK Web Design Association 
Registered Member
of the UK Web Design
Association

Valid XHTML 1.0 Strict



Generate JavaScript PopUp Window Code

Generates the code to embed into an HTML page to open up a new window to your specified dimensions and requirements. Just enter all the requirements for your window into the elements below, then hit generate code.

AttributeYesNo
Toolbar :
Location :
Directories :
Status :
Menubar :
Scrollbars :
Resizable :
Width :
Height :
Top :
left :
URL :
Windowname :
Link Text :
Copy and paste this code to the <HEAD> section of your page
Copy and paste this code to the <BODY> section of your page

open (window object)

Method. Opens a new web browser window.

    Syntax

    [windowVar = ]
    [window].open("URL", "windowName", ["windowFeatures"])

      Parameters

      windowVar is the name of a new window. Use this variable when referring to a window's properties, methods, and containership.

      URL specifies the URL to open in the new window.

      windowName is the window name to use in the TARGET attribute of a FORM or <A> tag. windowName can contain only alphanumeric or underscore (_) characters.

      windowFeatures is a comma-separated list of any of the following options and values:

         toolbar[=yes|no]|[=1|0]
         location[=yes|no]|[=1|0]
         directories[=yes|no]|[=1|0]
         status[=yes|no]|[=1|0]
         menubar[=yes|no]|[=1|0]
         scrollbars[=yes|no]|[=1|0]
         resizable[=yes|no]|[=1|0]
         width=pixels
         height=pixels
      You may use any subset of these options. Separate options with a comma. Do not put spaces between the options. The windowFeatures are:

      • toolbar creates the standard Navigator toolbar, with buttons such as Back and Forward, if true.
      • location creates a Location entry field, if true.
      • directories creates the standard Navigator directory buttons, such as What's New and What's Cool, if true.
      • status creates the status bar at the bottom of the window, if true.
      • menubar creates the menu at the top of the window, if true.
      • scrollbars creates horizontal and vertical scrollbars when the document grows larger than the window dimensions, if true.
      • resizable allows a user to resize the window, if true.
      • width specifies the width of the window in pixels.
      • height specifies the height of the window in pixels.