« Return to the main article
What I have done to avoid the undesired refresh:
function windowOpener(url, name, args) { if(typeof(popupWin) != "object" || popupWin.closed) { popupWin = window.open(url,name,args); } else { if (name!=popupWin.name){ popupWin.close(); popupWin = window.open(url,name,args); } } popupWin.focus(); return popupWin; }
What I have done to avoid the undesired refresh:
function windowOpener(url, name, args) { if(typeof(popupWin) != "object" || popupWin.closed) { popupWin = window.open(url,name,args); } else { if (name!=popupWin.name){ popupWin.close(); popupWin = window.open(url,name,args); } } popupWin.focus(); return popupWin; }