JavaScript Reference/Javascript Properties/screenLeft
"screenLeft" Example
<source lang="javascript">
<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>
</source>
"screenLeft" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |window | +----------------+--------------------------------------------------------------+
</source>
"screenLeft" Syntax and Note
<source lang="javascript">
Note: Read-only properties. Return the browser window top-left corner coordinates.
Syntax:
window.screenLeft window.screenTop
</source>