Click to See Complete Forum and Search --> : window size (not fixed)


merry
02-10-2003, 08:26 AM
I want that window opens full size every time, (not full screen size),

how write that? surely simple, ...but how?

:cool:

pyro
02-10-2003, 08:28 AM
What do you mean full size but not full screen?

merry
02-10-2003, 08:45 AM
I mean, that window must be 100% screen (w&h), but with head, töölbar, and so one...

sry, if I can not express oneself correctly

merry
02-10-2003, 09:03 AM
Is it right?

<SCRIPT>
window.resizeTo(screen.width,screen.height);
</SCRIPT>

Charles
02-10-2003, 09:10 AM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Script-Type" content="text/javascript">
<title>Window Example</title>
<script type="text/javascript">
<!--
function openFullSize(url) {
if (navigator.appName == 'Opera') return true;
// the following will give unacceptable results in Opera running in "Multiple Document Interface" mode
var param = 'height=' + screen.availHeight;
param += ',width=' + screen.availWidth;
param += ',screenX=' + 0;
param += ',left=' + 0;
param += ',screenY=' + 0;
param += ',top=', + 0;
window.open(url, 'child', param);
return false;
}

// -->
</script>

<p><a href="http://www.w3.org/" onclick="return openFullSize(this.href)">W3C</ a></p>

This will really annoy any user with a large screen and they will either leave your site, never to return, or they will block the pop up, so design your page so that it will work at any resolution.