PDA

View Full Version : Linking to a unique new window ?


martin_e
11-13-2004, 03:24 PM
I'm trying to form links from a gallery to a new page which will contain the image and further details about the item.

Is this possible with html ?

I've tried <... TARGET="resource window" ...> but it seems to create a single window that subsequent links will overide.

I would very much like each link to open a unique window, allowing multiple windows to be open to compare various images.

I have tried some javascript (haven't got the code to hand atm) but it too seems to use a single window for all the links - although has the advantage that I can size and place the window to suit.

Also - the javascript I have tried out only opens an image in the new window, whereas I would like to form a table 1 row, 2 columns with an image on the left and text on the right.

anybody able to help ?

thanks

Martin

Donkey
11-13-2004, 03:48 PM
Why not just use <...target="new"...> for each link?

martin_e
11-13-2004, 03:54 PM
I have tried this - but it seems to use just the one window.

If you try another link, it overwrites the old one.

I would really like to allow mulitple windows to be opened this way.

Thanks

Martin

Donkey
11-13-2004, 04:11 PM
Are you making a page to link to for each picture? If you do the target="new" should open a new window for each page.

chilipie
11-13-2004, 04:52 PM
Try target="_blank".

Jalenack
11-13-2004, 07:48 PM
hey...

<a href="bla.html" target="_blank">

the underscore is important...it sets the absolute new window..in fact you can check by looking at the source code of this page (all the links in everyone's signatures have target="_blank"

chilipie
11-13-2004, 08:19 PM
Sorry :( . Changed it now.

See this (http://www.sitepoint.com/article/standards-compliant-world) article - it enables you to open a blank window with JavaScript while still complying with an XHTML Strict Doctype.

martin_e
11-13-2004, 08:52 PM
Thanks all for the help (Again).

Got it working now :)

Martin