PDA

View Full Version : maximize popunder window


mitmo
10-17-2002, 04:12 PM
using the following script to popunder a couple of windows with tour dates for my band... I want to maximize the windows as well - anyone know how?

Thanx
Dave

<!--

var popunder1="http://.../wsou10-23.html"
var popunder2="http://.../tour11-8.html"
var once_per_session=1
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { // if cookie exists
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function loadornot(){
if (get_cookie('popunder')==''){
loadpopunder()
document.cookie="popunder=yes"
}
}

function loadpopunder(){
win2=window.open(popunder1)
win3=window.open(popunder2)
win2.blur()
win3.blur()
window.focus()
}
if (once_per_session==0)
loadpopunder()
else
loadornot()
-->

glenngv
10-18-2002, 06:12 AM
features = "width="+screen.availWidth+",height="+screen.availHeight;
win2=window.open(popunder1,"window2",features);
win3=window.open(popunder2,"window3",features);

mitmo
10-18-2002, 04:11 PM
Thanks for the help... that did it!
Now, how do I get it to position at the upper left of the screen, instead of maximizing with the corner of the window at the center of the screen?

mitmo
10-18-2002, 05:01 PM
Also the windows are coming up without scroll bars...

requestcode
10-18-2002, 05:14 PM
Try this:
features = "width="+screen.availWidth+",height="+screen.availHeight+"top=0,left=0,scrollbars=yes";

mitmo
10-18-2002, 09:15 PM
no dice - still opening away from left corner and without scroll bars.

thanx tho...

glenngv
10-21-2002, 02:13 AM
Originally posted by requestcode
Try this:
features = "width="+screen.availWidth+",height="+screen.availHeight+"top=0,left=0,scrollbars=yes";

features = "width="+screen.availWidth+",height="+screen.availHeight+",top=0,left=0,scrollbars=yes";

mitmo
10-21-2002, 02:02 PM
Perfect... thanx!