Results 1 to 2 of 2

Thread: Newbie- how to maximized page when start

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    784

    Newbie- how to maximized page when start

    Dear All,

    I am very new with asp.net .. I need my page will automatically maximized when start.. how to do this? .. please advise and thanks a lot in advance

    Regards
    Winanjaya

  2. #2
    Fanatic Member wildcat_2000's Avatar
    Join Date
    Nov 2000
    Location
    Italy
    Posts
    727
    doesn't matter that it is with .net, just use javascript as you would normally.
    Code:
    <html>
    <head>
    <script language="JavaScript" type="text/javascript">
    function MaxWindow() {
      var X = 0;
      var Y = 0;
      if (screen.availWidth){
        X = screen.availWidth;
        Y = screen.availHeight;
      }
     window.resizeTo(X, Y);
     window.moveTo(0,0);
    
    }
    </script>
    <body onLoad="MaxWindow();">
    test
    </body>
    </html>
    When your car breaks down,
    close all windows and retry

    => please rate all users posts! <=

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width