Image popup on link click

Open an image in a popup

Click the link below to enlarge the sample tutorial illustration. Close it with ×, Escape, or a click outside the dialog panel.

Illustrated browser image popup with a mountain lake preview and close buttonOpen image popupWithout JavaScript, jQuery, or dialog support, the link opens the image directly.

Image preview

Illustrated browser image popup with a mountain lake preview and close button

Sample tutorial illustration. The image is contained within the viewport without cropping.