return to tutorial and/or
In javascript, yes=1 and no=0
directories=1,0
... standard browser directory buttons to appear on popuplocation=1,0
... to show where new URLs jump tomenubar=1,0
... place a menu at top of popup windowresizable=1,0
... allow for resizing of popup (say yes if popup contains text)scrollbars=1,0
... for scrollbars if necessary (defaults to yes)status=1,0
... for status bar at bottom of popuptoolbar=1,0
... for toolbar (back reload/refresh etc) at top of popupwidth=100,?
... width in pixels of content area of window - minimum is 100height=100,?
... height in pixels of content area of window - minimum is 100Please remember that there are still some OS with resolutions set to 800x600. It is inadvisable to make your popup window too large. (Make sure that your visitors will be able to close the window!)
Coding (between the dotted lines): (Please let "copy and paste" be your friend)
N.B. Each line of Javascript that is from onclick=
to status=0,' +
, from 'toolbar=0,
to top=20');
, and from onmouseover=
to popup');
must be in one line in coding (ie: no line breaks)
<a href="http://website" title="link name"
window.name='main';
onclick="var w=window.open(this, 'popup', 'directories=0,menubar=0,status=0,' +
'toolbar=0,scrollbars=1,resizable=1,width=590,height=400,left=20,top=20');
return false;"
onmouseover="setAttribute('title',' opens in a popup');">link</a>