[thelist] One popup window, different sizes
Matt Warden
mwarden at gmail.com
Wed Oct 12 18:16:25 CDT 2005
Robert,
Unfortunately I do not have access to Safari at the moment to test, but...
On 10/12/05, Robert Carpenter <evolt at thebigcrux.com> wrote:
> function popNew(a,n,h,w) {
> if((typeof(popWin) != "undefined")){
> popWin.close();
> }
> popWin = window.open(a,n,'directories=0,height=' + h + ',width=' + w +
> ',location=0,menubar=0,resizable=1,scrollbars=0,status=0,toolbar=0');
> return false;
> }
Try this slight modification:
var popWin = false;
function popNew(a,n,h,w) {
if(popWin && popWin.close){
popWin.close();
}
popWin = window.open(a,n,'directories=0,height=' + h + ',width=' +
w + ',location=0,menubar=0,resizable=1,scrollbars=0,status=0,toolbar=0');
return false;
}
--
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com
This email proudly and graciously contributes to entropy.
More information about the thelist
mailing list