jquery open image in new tab

JavaScript
window.open(filePath + img_to_load + '.jpg', '', 'width=640,height=480');

Source

Also in JavaScript: