« Return to the main article
First windowOpener() can be simplified with the same functionality as follows:
function windowOpener(url, name, args) {
if(typeof(popupWin) != "object" || popupWin.closed) { popupWin = window.open(url,name,args); } else { popupWin.location.href = url; }
popupWin.focus(); }
First windowOpener() can be simplified with the same functionality as follows:
function windowOpener(url, name, args) {
if(typeof(popupWin) != "object" || popupWin.closed) { popupWin = window.open(url,name,args); } else { popupWin.location.href = url; }
popupWin.focus(); }