JavaScript Reference/Javascript Properties/screenTop
Версия от 18:30, 25 мая 2010; (обсуждение)
"screenTop" Example
<html>
<body>
<script language="JavaScript">
function function1() {
var m = ""
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>
"screenTop" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |window |
+----------------+--------------------------------------------------------------+
"screenTop" Syntax and Note
Note:
Read-only properties.
Return the browser window top-left corner coordinates.
Syntax:
window.screenLeft
window.screenTop