Problem on maximizing the window on java script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kannabiran
    New Member
    • Jan 2007
    • 14

    #1

    Problem on maximizing the window on java script

    Hi,
    I used this below code to maximize window its works fine..but the maximixe icon it doesnt changed its remains as the single box alone..i need a box overlap icon while maximizing the window.help me..



    <script language="JavaS cript1.2">
    <!--

    top.window.move To(0,0);
    if (document.all) {
    top.window.resi zeTo(screen.ava ilWidth,screen. availHeight);
    }
    else if (document.layer s||document.get ElementById) {
    if (top.window.out erHeight<screen .availHeight||t op.window.outer Width<screen.av ailWidth){
    top.window.oute rHeight = screen.availHei ght;
    top.window.oute rWidth = screen.availWid th;
    }
    }
    //-->
    </script>


    regards
    Kanna
  • dmjpro
    Top Contributor
    • Jan 2007
    • 2476

    #2
    hellooo friend ....

    u r resizing the window not maximize it programatically .....

    if u can maximize the window using programatically ... then send ur code ....

    thanx .....

    Comment

    • kannabiran
      New Member
      • Jan 2007
      • 14

      #3
      Hi Friend,
      Thanks for ur reply..actually im new new to the java script,i dont know how to maximize window in javascript..if u know the code please send it to me..

      Regards
      Kanna

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        You can't maximise the window probably unless you use some ActiveX or VBScript code (only works in IE) though I would strongly disapprove of that. See this thread.

        Comment

        Working...