how to maximize a window using js

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dmjpro
    Top Contributor
    • Jan 2007
    • 2476

    how to maximize a window using js

    i want to maximize a window after opening it using ...

    window.open

    how can i do this using JS

    plz help me out ...
    thanx in advance ....
  • wgale025
    New Member
    • Feb 2007
    • 23

    #2
    try this
    Code:
        var opSub=window.open("about:blank")
        opSub.window.moveTo(0,0);
        opSub.window.resizeTo(screen.availWidth,screen.availHeight)

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      That doesn't maximise the window. It simulates the maximisation. Also, some users can prevent this from happening. See this thread.

      Of course, despite all that, it may be exactly what you want!

      Comment

      • dmjpro
        Top Contributor
        • Jan 2007
        • 2476

        #4
        thanx for ur reply ............... .....

        Comment

        Working...