JavaScript  -  Screen Available Height

Option 1.   Save this script in the <head> of your html document

<script type="text/javascript">
var scraH1 = screen.availHeight;
</script>

and use this script in the <body>

<script type="text/javascript">
<!--
document.write(""+scraH1+"px");
//-->
</script>

Screen Available Height - Displays:

 

Option 2.   Save this script in your js folder

Save the following script as screenavheight.js

<!--
var scraH2 = screen.availHeight;
document.write(""+scraH2+"px");
// or
// document.write(""+screen.availHeight+"px");
// without variable
//-->

and refer to it in the <body> of your html document

<script src="/js/screenavheight.js" type="text/javascript"></script>

Screen Available Height - Displays:

 

Option 3.   Embed this script in the <body> of your html document

<script type="text/javascript">
<!--
var scraH3 = screen.availHeight;
document.write("Screen Available Height is "+scraH3+"px");
// or
// document.write("Screen Available Height is "+screen.availHeight+"px");
// without variable
//-->
</script>

Screen Available Height - Displays: