Re: Pop -Up Windows

by Thomas James Allen <tjallen(at)pipeline.com>

 Date:  Fri, 13 Aug 1999 23:17:41 -0400
 To:  "gaetano carpino" <rudy30(at)hotmail.com>
 Cc:  hwg-basics(at)hwg.org
  todo: View Thread, Original
At 08:11 AM 8/13/99 PDT, you wrote (and I edited):
>I'm currently working on a site that has frames at he top of the page. 
>Within my top frame are the various links that load to the bottom main 
>frame. I want one of my links to be a pop-up window. Does anyone have a nice 
>easy javascript for a pop-up window.
---------
The easiest way to open a popup window is:

<a href="#"
onClick="window.open('contents.html','window_name','width=200,height=200')">
Click here</a>

(note: all in one line, my email program is wrapping).

There are many other ways to open a window with javascript. 
A great tutorial is the series of articles by Charity Kahn at C|Net, at:
http://www.builder.com/Programming/Kahn/092497/

Hope this helps,
jimmy

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA