JavaScript Reference/Javascript Properties/screenLeft — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:21, 26 мая 2010
"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>
"screenLeft" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |window |
+----------------+--------------------------------------------------------------+
"screenLeft" Syntax and Note
Note:
Read-only properties.
Return the browser window top-left corner coordinates.
Syntax:
window.screenLeft
window.screenTop