Popup Window Syntax

<a href="popsyntax.html" target="_blank" onclick="window.open(this.href,'newwindow','width=800,height=300,scrollbars=yes');return false;">Pop This Page</a>

This link uses the code above to open this page in a new window.

Benefits

  1. works if no javascript
  2. accessible
  3. status bar still shows url
  4. works if right-click to open link in new tab or window
  5. no dependant functions or libraries

Window Features

You have a fair amount of control over the window created by the window.open function, but use it wisely. Don't disable resizing and scrolling unless absolutely necessary.

Here are the features that can be can be added to the third argument of window.open. You may set them to yes or no. If any are omitted no is assumed.

height
Height of the window's document display area in pixels
location
A.K.A. address bar. URL input.
menubar
File, Edit, etc.
resizable (note: not resizeable)
User can change the height and width.
scrollbars
Horizontal/vertical scrollbars if necessary. Unless the popup contains images only this is highly recommended, as people may resize text and make the contents taller than the window.
status
Status line along the bottom
toolbar
Back/Forward buttons, etc.
width
Width of the window's document display area in pixels

I have left off proprietary crap.