Hacker News new | ask | show | jobs
by vortico 3800 days 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.
1 comments

=)

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.

If a link opens in a new tab on Android, the back button closes the tab.
I 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. :-/