Dynamically resize Browser Window based on its contents

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chowdary0783
    New Member
    • Oct 2008
    • 2

    Dynamically resize Browser Window based on its contents

    Hi every one, I working on an web application in which clicking a button opens another window which will be dynamically populated with some data. Amount of data cannot be decided. I just want to fit the window size to the content of the data. Any suggestiosn??

    Thanks a lot.
  • chowdary0783
    New Member
    • Oct 2008
    • 2

    #2
    self.moveto(win dow.width - (window.body.sc rollWidth + <any value like 12 or 30 according to your convenience>), <any integer>);

    this is a javascript code.

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Wouldn't it be the resizeTo method that you're looking for?

      Comment

      Working...