window.screenTop

書式

window.screenTop

説明

ウィンドウが表示されている画面上のY座標をピクセル値で返します。Windows版Internet Explorer 5以降、Opera、Safari 2、iCab 3以降で動作します。

サンプルコード [実行]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Sample</title>
</head>
<body>
<script type="text/javascript"><!--
document.write(window.screenTop);
// --></script>
</body>
</html>