jriver12
asked on
Maximize page size automaticaly
what is the correct syntax to force a site to open completely(taking up the entire screen ) regardless
of what resolution and monitor size the user is using?
of what resolution and monitor size the user is using?
ASKER
this looks alot like opening a child window, if it is, I need to know if there is a way to force the parent window to open entirely?
<SCRIPT>
var w = screen.availWidth||screen. width
var h = screen.availHeight||screen .height
window.moveTo(0,0)
window.resizeTo(w,h)
</SCRIPT>
var w = screen.availWidth||screen.
var h = screen.availHeight||screen
window.moveTo(0,0)
window.resizeTo(w,h)
</SCRIPT>
ASKER
how would I call this script?
would it be <body onload="?".
the above has no function name(ie previous was "function openNew()" would this one be if I was to choose resizewin()? or am I off track here?
would it be <body onload="?".
the above has no function name(ie previous was "function openNew()" would this one be if I was to choose resizewin()? or am I off track here?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
There is a problem with setting screen to a fixed size the way you did it, that is not a BIG problem, just a hassle... it isn't TRUELY maximise...?
You'll if you take your mouse to the bottom of the screen, that it will allow you to resize it. Which you don't get when you're maximised. (you'll also notice the top icon would show "Maximise", not the "sub minimize" as it should... it's not truely maximized =(
But there is no alternative, (it seems?)
I know there is a function that allows you to set the min/max status of your window........ but I can't find it anywhere even on msdn :/
~Ixeus
You'll if you take your mouse to the bottom of the screen, that it will allow you to resize it. Which you don't get when you're maximised. (you'll also notice the top icon would show "Maximise", not the "sub minimize" as it should... it's not truely maximized =(
But there is no alternative, (it seems?)
I know there is a function that allows you to set the min/max status of your window........ but I can't find it anywhere even on msdn :/
~Ixeus
that only works in ie, and it only works on new windows.
since the window covers the screen, I don't see what the difference is...the little in the corner doesn't really matter.
since the window covers the screen, I don't see what the difference is...the little in the corner doesn't really matter.
ASKER
bebonham,
Thank you for the help. I am sorry for the delay in releasing the points, I have recently become OBE.
thanks again.
Thank you for the help. I am sorry for the delay in releasing the points, I have recently become OBE.
thanks again.
<html>
<head>
<title></title>
<script>
function openNew() {
var w = screen.availWidth||screen.
var h = screen.availHeight||screen
window.open('pageToOpen.ht
}
</script>
</head>
<body>
<a href="#" onclick=openNew();>Click</
</table>
</body>
</html>