How can I open an image in a new window by using its id?
id
function swipe() { var largeImage = document.getElementById(\'largeImage\');
For a new window that has a good chance of being lost behind the main window, and generally annoying visitors:
window.open('http://example.com/someImage.png');
I'd just stick to a regular link if I were you.