Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    dynamic table in firefox and IE

    This code works in IE but not firefox, how do I get it to work in both?

    [CODE]
    <script>
    function setUp(){
    document.getElementById('tab').style.width=document.body.clientWidth-193;
    document.getElementById('tab').style.height=document.body.clientHeight-162;
    }
    window.onload=setUp;
    window.onresize=setUp;
    </script>
    [CODE]

  • #2
    Regular Coder
    Join Date
    Mar 2008
    Posts
    235
    Thanks
    6
    Thanked 21 Times in 20 Posts
    try document.documentElement.clientHeight
    Andrew Sharman
    Web designer, developer and programmer.

    If you found my post helpful, why not give thanks! :)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •