Hi everyone
I need your help just want to know why my webforms doest maximize i
paste the
script on the onload event
<head runat="server">
<title>Untitled Page</title>
</head>
<body onload="javascript:
window.innerWidth = screen.width
window.innerHeight = screen.height
window.screenX = 0;
window.screenY = 0;
alwaysLowered = false;
">
<form id="form1" runat="server">
</form>
</body>
</html>
Is there anyway of maximizing the web forms using Java Script? or do I place
my
code on the wrong bdy of the script ? if yes please correct my code and I
want to
know where can place the code.
Thanks and Best Regards
Mactry this in the head section
<script language="JavaScript1.2">
<!--
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if
(top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.ava
ilWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>
Regards
John Timney
Microsoft MVP
"mac" <markvergara007@.hotmail.com> wrote in message
news:%23orIqAZdGHA.1208@.TK2MSFTNGP02.phx.gbl...
> Hi everyone
> I need your help just want to know why my webforms doest maximize i
> paste the
> script on the onload event
>
> <head runat="server">
> <title>Untitled Page</title>
> </head>
> <body onload="java script:
> window.innerWidth = screen.width
> window.innerHeight = screen.height
> window.screenX = 0;
> window.screenY = 0;
> alwaysLowered = false;
> ">
> <form id="form1" runat="server">
> </form>
> </body>
> </html>
>
> Is there anyway of maximizing the web forms using Java Script? or do I
> place my
> code on the wrong bdy of the script ? if yes please correct my code and I
> want to
> know where can place the code.
>
> Thanks and Best Regards
> Mac
>
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment