I have a webpage with an url to PHP file which displays picture. I want to open this picture in new window without blank page.
For now with code below, when I click on URL, blank page and new window open (which I have to close each time). I do not want this blank page, only window with picture
window.open('image.PNG', 'image', 'toolbar,menubar,scrollbars,resizable,height=800,width=400,left=600,top=400');
How to do it?
//edit Prevent default does not work if I have
<a href="file.php">Link</a> //URL to PHP with script above