« Return to the main article
In your link, separate out the height and width in to two extra arguments to the function:
javascript:windowOpener('../screens.php?fi=pi...','screens',480,450)
Then in the function you need to make it like this:
function windowOpener(pic, title, width, height) {
if(typeof(popupWin) != "object" || popupWin.closed) { popupWin = window.open(pic,title);
} else { popupWin.location.href = pic; }
popupWin.focus(); popupWin.width=width; popupWin.height=height; }
HTH
In your link, separate out the height and width in to two extra arguments to the function:
javascript:windowOpener('../screens.php?fi=pi...','screens',480,450)
Then in the function you need to make it like this:
function windowOpener(pic, title, width, height) {
if(typeof(popupWin) != "object" || popupWin.closed) { popupWin = window.open(pic,title);
} else { popupWin.location.href = pic; }
popupWin.focus(); popupWin.width=width; popupWin.height=height; }
HTH