'screenTop' Example : window : Javascript Objects JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Javascript Objects » window »

 

'screenTop' Example



    
<html>
<body>
<script language="JavaScript">
function function1() {
    var m = ""
    m = "The left coordinate is: " + window.screenLeft + "n";
    m += "The top coordinate is: " + window.screenTop + "n";
    alert(m)

</script>
<body bottommargin="150">
<input type="button" value="Extract the coordinates" onclick="function1();">
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Javascript Objects
» window