RogerThompson
01-02-2008, 04:27 AM
I am really stumped why the first set of javascript returns a new window with scrollbars but the second set of javascript returns a window where the scrollbars are missing. Everything but the scrollbars seems to be working in the second set of code. Any help is greatly appreciated.
This javascript returns a new window with scrollbars:
on (release)
{
javascript("window.open('Contact.htm','Contact','width=500,height=540,resizable=yes,scrollbars=yes,toolbar=yes,l ocation=yes,directories=yes,status=yes,menubar=yes,top='+((screen.availHeight/2)-(540/2))+',left='+((screen.availWidth/2)-(500/2))+'');void(0);");
}
This code returns a different popup window, but the scrollbars are missing in this new window:
on (release)
{
javascript("window.open('http://maps.google.com/maps?f=q&hl=en&geocode=&time=&date=&ttype=&q=1600+Madison+St,+South+Roxana,+IL&sll=37.0625,-95.677068&sspn=31.564064,59.238281&ie=UTF8&ll=38.834125,-90.051241&spn=0.015144,0.028925&z=15&iwloc=addr&om=1','Google','resizable=yes,scrollbars=yes,toolbar=yes,location=yes,directories=yes,status=yes,men ubar=yes');void(0);");
}
Why do the scrollbars not show up in the window generated by the second code?
Thanks
This javascript returns a new window with scrollbars:
on (release)
{
javascript("window.open('Contact.htm','Contact','width=500,height=540,resizable=yes,scrollbars=yes,toolbar=yes,l ocation=yes,directories=yes,status=yes,menubar=yes,top='+((screen.availHeight/2)-(540/2))+',left='+((screen.availWidth/2)-(500/2))+'');void(0);");
}
This code returns a different popup window, but the scrollbars are missing in this new window:
on (release)
{
javascript("window.open('http://maps.google.com/maps?f=q&hl=en&geocode=&time=&date=&ttype=&q=1600+Madison+St,+South+Roxana,+IL&sll=37.0625,-95.677068&sspn=31.564064,59.238281&ie=UTF8&ll=38.834125,-90.051241&spn=0.015144,0.028925&z=15&iwloc=addr&om=1','Google','resizable=yes,scrollbars=yes,toolbar=yes,location=yes,directories=yes,status=yes,men ubar=yes');void(0);");
}
Why do the scrollbars not show up in the window generated by the second code?
Thanks