cotec
12-29-2005, 02:54 PM
I have a Flash Application which needs to be in a window that has a size of 1024 x 768, so I've included a javascript to set the popup's size to those dimensions. However, when I try to open the HTML page that has the javascript on a Windows XP computer, the popup window's dimensions aren't changing to those settings.
I forgot to check to see what version of IE this computer has, but I think it is the default version that comes with XP. I used the following lines of code to open the window:
windowW=1024;
windowH=768;
s = "width="+windowW+",height="+windowH;//+",scroll=0";
var isIE = document.all?true:false
if (isIE) {
NW = window.open("","popFrameless",s)
NW.blur();
window.focus();
NW.resizeTo(windowW,windowH)
} else {
NW = window.open("myFile.html", "popFrameless","scrollbars,"+s)
NW.blur();
NW.resizeTo(windowW, windowH)
}
Is there a different way to open a popup to a specific size in XP?
Chris
I forgot to check to see what version of IE this computer has, but I think it is the default version that comes with XP. I used the following lines of code to open the window:
windowW=1024;
windowH=768;
s = "width="+windowW+",height="+windowH;//+",scroll=0";
var isIE = document.all?true:false
if (isIE) {
NW = window.open("","popFrameless",s)
NW.blur();
window.focus();
NW.resizeTo(windowW,windowH)
} else {
NW = window.open("myFile.html", "popFrameless","scrollbars,"+s)
NW.blur();
NW.resizeTo(windowW, windowH)
}
Is there a different way to open a popup to a specific size in XP?
Chris