Link to home
Start Free TrialLog in
Avatar of yairab
yairab

asked on

document.body.scroll not working i fireFox

document.body.scroll  = "no"  / document.body.scroll  = "yes"

any idia haw to do it for fireFox
ASKER CERTIFIED SOLUTION
Avatar of kadaba
kadaba
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of yairab
yairab

ASKER

hi thanks for replay

it did bot work for me

her is may base code
i tray to use  the code you sent -- did not work her is may cod:


function resizeWin(){

      var addHeight = 0;
      var maxWinHeight = screen.availHeight - 100;
      var tblMain_height = document.getElementById("tblMain").offsetHeight;
      var winHeight = document.body.clientHeight;
      if(winHeight + (tblMain_height - winHeight + 50) > maxWinHeight) {
            addHeight = maxWinHeight - winHeight;
            document.body.scroll = "yes";
      }
      else {
            addHeight = tblMain_height - winHeight + 50;
            document.body.scroll = "no";
      }
      window.resizeBy(0, addHeight);

}
i open the window whit window.open (...,scroll=no)

thanks