onload = function(){
alert(document.body.clientHeight);
}

解决方案 »

  1.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/tr/html4/strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
      <title>  - http://www.never-online.net </title>
      <meta http-equiv="ImageToolbar" content="no" />
      <meta name="author" content="never-online, BlueDestiny"/>
      <meta name="title" content=" - http://www.never-online.net" />
      <meta name="creator.name" content="never-online, BlueDestiny" />
      <style type="text/css" media="all" title="Default">  </style>
      <script type="text/javascript">
      //<![CDATA[onload = function(){
    alert(Math.max(document.documentElement.clientHeight,document.body.clientHeight));
    }
      //]]>
      </script>
      <body id="www.never-online.net">  </body>
    </html>