Copy codeThe Code is as follows:
<Script type = "text/javascript">
$ (Document). ready (function ()
{
Alert ($ (window). height (); // The visible area height of the current window in the browser
Alert ($ (document). height (); // The height of the current window document in the browser
Alert ($ (document. body). height (); // The height of the current file body in the browser window
Alert ($ (document. body). outerHeight (true); // the total height of the current file body in the browser window includes border padding margin.
Alert ($ (window). width (); // The width of the visible area of the current window in the browser
Alert ($ (document). width (); // width of the document Object in the current window of the browser
Alert ($ (document. body). width (); // The height of the current file body in the browser window
Alert ($ (document. body). outerWidth (true); // The total width of the current file body in the browser window includes border padding margin
}
)
</Script>