There are many ways you could do this. The basic HTML for inserting an image with a link to a new window will be:
<a href="enlarged.html" target="_blank">
<img src="photos/photo-name.jpg" />
</a>
, . , - PHP, HTML- 600 . , , , , , / javascript, .
script. , - .