How can I open image in new window?

  • Joni1
  • Beginner
  • Beginner
  • User avatar
  • Posts: 43

Post 3+ Months Ago

Can someone post the HTML code that how can I open image in new white window? It must be somehting same as when you open link in new page, but this time it must be image?!
Can ANYONE help me?! I really need that info!! :(
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Vladdrac
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2136
  • Loc: Louisville, Ky

Post 3+ Months Ago

Code: [ Select ]
<A HREF="http://www.site.com/pic.jpg" target="_blank">
Link</A>
  1. <A HREF="http://www.site.com/pic.jpg" target="_blank">
  2. Link</A>


this will open a pic in a new window, however it will be a full page window. I beleive you can use javascript to have the new window resize to whatever dimensions
  • templastorm
  • Graduate
  • Graduate
  • templastorm
  • Posts: 173
  • Loc: Chicago

Post 3+ Months Ago

pretty much:

Code: [ Select ]
target=_blank
  • paolus
  • Student
  • Student
  • User avatar
  • Posts: 67
  • Loc: The Netherlands

Post 3+ Months Ago

I often use this code:
Code: [ Select ]
<a href="#" onClick="window.open('http://www.domain.nl/image.jpg', 'WindowC', 'width=650, height=500,scrollbars=yes');">link</a>

But I think it can be done in another (better?) way... Sometimes I notice opened windows automagically adjust its size to the size of the image.
  • sycofi5h
  • Expert
  • Expert
  • sycofi5h
  • Posts: 506
  • Loc: Australia

Post 3+ Months Ago

Paolus, but people like me who are lazy, cant be bothered writing all that


templastorm wrote:
pretty much:

Code: [ Select ]
target=_blank


no that is short and sweet

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: Veeramanikandan and 47 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.