felixhagspiel / jsOnlyLightbox

Responsive Lightbox in plain JS. No need for jQuery.
MIT License
157 stars 49 forks source link

I want to show image in new tab of browser when user click the image. #43

Closed jonahfang closed 5 years ago

jonahfang commented 5 years ago

Is it possible?

jonahfang commented 5 years ago
        onimageclick: function(img){
            var url = img.img.src
            window.open(url,'_blank')
        },