Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1325
  • Last Modified:

how to force my web form to load maximize ( ASP.NET )

Dear experts,
I need to render my web form (window browser) full screen size.
how to force my web form to load maximize ( ASP.NET )
thanks.
EC
0
EdCariello
Asked:
EdCariello
  • 2
1 Solution
 
tusharashahCommented:
Put following Script in <head> tag of your Page:

<script language="JavaScript">
   window.moveTo(0,0);
   window.resizeTo(screen.width,screen.height);
</script>

-tushar
0
 
tusharashahCommented:
Here's more accurate Cross Broswer Script for the same:

<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.availWidth)
     { top.window.outerHeight = top.screen.availHeight;
       top.window.outerWidth = top.screen.availWidth; }
   }
</script>

-tushar
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now