[thelist] Advanced popup window

rudy r937 at interlog.com
Fri Jun 20 17:27:06 CDT 2003

> could i get a hand with opening a new page in a popup window...

check this article --

    Links & JavaScript Living Together in Harmony

the piece of code you are looking for is

   onclick="window.open(this.href, this.target); return false"
  >click here</a>

except instead of "click here" you'd have <img src=... />

to size the window to fit your image, add a third parameter called
windowFeatures, defined in

Table 1.4 Optional features to specify for a new window

> ... and clicking an image should cause a new window to
> open with a template page that i have created.

so each thumbnail link might say --

   href="template.html?img=..." ...

and the template page displays the image for the name passed in the url

> is this a reasonable way of opening a new image in a  window?


assuming you link harmoniously


More information about the thelist mailing list