right now I'm trying to open a new popup window using JavaScript but I just want a single popup window to be opened if you click several times a link, but if I close the window I want it to open to popup again.
So far I have thw following:
.js
function open() {
var popup = window.open("http://www.google.com/", "URL","left=0,top=0,width=800,height=600,status=no,resizable=no,scrollbars=no,toolbar=no,menubar=no");
}
.html
<a onclick="javascript:open()">Click me</a>
It works nice using Chrome and FF, but when I test it with IE it opens a new window for every click.
I would like to know if there is a way to fix this.