2 replies [Last post]
Last seen: 16 years 9 weeks ago
Joined: 2004-11-14
Posts: 1
Points: 0

Okay. I'm in a dilemma. I can't seem to find ANY code or create ANY code for an image link that once clicked on opens up a popup window.

Basically, what I want is an image...And when you click on it to open a popup window in another window, obviously. Can this be done? Does it have to be purely with text?

The way I've been able to do this is with Javascript and I hate Javascript.

Any help would be IMMENSELY appreciated.


Hugo's picture
Last seen: 6 years 1 week ago
Joined: 2004-06-06
Posts: 15668
Points: 2806

Image Link Popup Windows

Hi there, if your willing to use a transitional dtd then you could use the 'target="_blank" in your link but it is officially a deprecated tag as of HTML 4.01 and probably not a great idea to get in the habit of using, Javascript is the only other option really and works reasonably well .
The opening of windows is not really a document issue hence the removal of the function in HTML/XHTML it's a user issue and their choice to control with the browser I think.

Hope that's of some help.


Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

thepineapplehead's picture
Last seen: 43 weeks 3 days ago
Joined: 2004-06-30
Posts: 9668
Points: 801

Image Link Popup Windows

Is there any need for a popup window?

Check out www.s7u.co.uk and look for the photo gallery.


There's a host of other stuff there, too.

Verschwindende wrote:
  • CSS doesn't make pies