'screenLeft' Example : screenLeft « Javascript Properties « JavaScript Reference

'screenLeft' Example

    
<html>
<body>
<script language="JavaScript">
function function1() {
    var m = ""
    m = "The left coordinate is: " + window.screenLeft + "\n";
    alert(m); 
} 
</script>
<body bottommargin="150">
<input type="button" value="Extract the coordinates" onclick="function1();">
</body>
</html>

    
      
      








Related examples in the same category

1.'screenLeft' Syntax and Note
2.'screenLeft' is applied to