CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2001
    Posts
    56

    Start the web page on maximum size

    Hi Gurus,

    How do I maximized the web page in code when it loads on the browser?

    Thanks in advance.
    MsJane


  2. #2
    Join Date
    Jul 2001
    Posts
    5

    Re: Start the web page on maximum size

    *****Cut below here and add it between <head> and </head>****
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    function maximizeWin()
    {
    if (window.screen)
    {
    var aw = screen.availWidth;
    var ah = screen.availHeight;
    window.moveTo(0, 0);
    window.resizeTo(aw, ah);
    }
    }
    </SCRIPT>
    ***END CUT HERE****

    ANd a body tag that looks like this:
    <body OnLoad="javascript:maximizeWin()">


  3. #3
    Join Date
    Mar 2001
    Posts
    56

    Re: Start the web page on maximum size

    Hi Mikael99,

    thank you very much.

    MsJane


  4. #4
    Join Date
    Mar 2001
    Posts
    56

    Re: Start the web page on maximum size

    Hi Mikael99,

    Your code works in Nescape but not in Internet Explorer. Any idea?

    Thanks.
    MsJane


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

Featured