PDA

View Full Version : availWidth/Height works in FF but not in IE


SirNapalm
06-15-2005, 01:04 PM
Hi there,

I have a startpage to launch my flash site in either Normal or Fullscreen (selectable by the user). The startpage in the background will load a thankyou page to be there once the user closes the flash site.

In Firefox it opens the normal window and the window without toolbar, status- and menubar like I want it to. The full width and height of the user screen. But in IE it opens these two windows a different, smaller size - WHY?

My resolution is 1280x800.

here's my code:

<html>
<head>
<script language="JavaScript">
<!-- hide
var ie = (document.all)? true:false
var isMac = (navigator.appVersion.indexOf('Mac') >0)? true:false;
function full() {
var wihe = 'width='+screen.availWidth+'height='+screen.availH eight;
window.open("home.html", "Home", "screenX=0,screenY=0,left=0,top=0" + wihe);
document.location = "end.html"
}
function normal(file) {
window.open(file)
document.location = "end.html"
}
// done hiding -->
</script>
</head>
<body>
<a href="javascript:full('home.html');">Launch Full</a>
<a href="javascript:normal('home.html');">Launch Normal</a>
</body>
</html>


I have also tried avail.width and avail.height - but these two don't seem to work in either Firefox nor IE.

Help would be greatly appreciated!

Cheers,

Boskic.com
06-19-2005, 06:26 PM
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>
<script type="text/javascript">
var ie = (document.all)? true:false
var isMac = (navigator.appVersion.indexOf('Mac') >0)? true:false;
function full(file) {
var wihe = 'width='+screen.availWidth+'height='+screen.availH eight;
window.open(file, "Home", "screenX=0,screenY=0,left=0,top=0" + wihe);
document.location = "end.html";
}
function normal(file) {
window.open(file);
document.location = "end.html";
}
</script>
</head>

<body>
<a href="javascript:full('home.html');">Launch Full</a>
<a href="javascript:normal('home.html');">Launch Normal</a>
</body>

</html>

vbanow
05-05-2007, 05:00 PM
The Boskic.com script does work fullscreen for MIE browser but neither this nor the SirNapalm scripts work fullscreen in my Firefox browser. I checked the Firefox settings and see nothing likely related to this issue. Firefox delivers a small window rather than full screen window.

PS. 5/6/07
This issue is resolved.
This "configuration" is done from the view menu. (Full screen or F11).
I call it configuration because the setting survives the next time you run Firefox.
It seems strange that it was not selectable from the tools/options menu.