Myworld
Myworld

Reputation: 1899

display image in new page

I had soluation which display images and I want when click on displayed image to display in new page with it,s original size.So what can I do?

Upvotes: 0

Views: 297

Answers (2)

Jahan Zinedine
Jahan Zinedine

Reputation: 14874

Just inspect one of the images on stackoverflow by Firebug and change the href of a tag

<a title="" target="_blank" rel="nofollow" 
     href="http://static.adzerk.net/Advertisers/3099.jpg">
  <img width="220" height="250" border="0" alt="" title="" 
         src="http://static.adzerk.net/Advertisers/3099.jpg">
</a>

Upvotes: 0

Oded
Oded

Reputation: 499382

You can simply link directly to the image, if you just want the image to display.

<a href="path to image"><img src="path to image" alt="" target="_blank" /></a>

target="_blank" will open it in a new window/tab.

Upvotes: 1

Related Questions