[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
http://evolt.org/links_javascript
the piece of code you are looking for is
<a
href="somedoc.html"
target="newWindow"
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
http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/window.html#1202731
> ... 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 --
<a
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?
soiteny
assuming you link harmoniously
;o)
More information about the thelist
mailing list