Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What code can I use to open a image in a window?

Status
Not open for further replies.

kamraniac

Technical User
Oct 6, 2006
2
GB
Hi

I've seen some websites which feature an image, and if you click on the image a popup window will open featuring an enlarged version of the image. You can see an example in this page.

Can anyone tell what javascript code would allow for this feature? Thanks, I would appreciate any help.
 
<a href="fullimage.jpg" target="_blank"><img src="thumbedimage.jpg" border="0"></a>

Grant it doesn't turn off toolbars, scrollbars, address bar or isn't a specific size, but it works even when users have javascript turned off and pop-up blockers enabled.

_______________
_brian.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top