4 ms·
Here's my lightbox implementation: <a href="photo.jpg" target="_blank"><img src="photo_thumb.jpg"/></a> Works in all browsers, native, lightweight, public
by vortico 11y ago
Here's my lightbox implementation:
<a href="photo.jpg" target="_blank"><img src="photo_thumb.jpg"/></a>
Works in all browsers, native, lightweight, public domain.
- janaagaard 11y ago=) I prefer it without the target attribute, generally because I prefer navigating back than closing a window. This is especially true on phones. Power users on desktop computers usually know how to open in a tab using the third mouse button or Ctrl-clicking.
- BHSPitMonkey 11y agoIf a link opens in a new tab on Android, the back button closes the tab.
- janaagaard 11y agoI didn't know that. Neat. Then maybe iOS will get this one day. I would like some kind of reverse Ctrl-click, that would force links to open in the same window as the one I'm currently in. I just don't know how this should work, if I click a link while I'm filling in a form. :-/