<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">
		span{
			color: darkRed;
		}
	</style>
</head>
<body>
	<h2>window.innerWidth:<span id="innerWidth"></span></h2>
	<h2>window.innerHeight:<span id="innerHeight"></span></h2>
	<h2>window.screen.width:<span id="screenwidth"></span></h2>
	<h2>window.screen.height:<span id="screenheight"></span></h2>
	<h2>window.history.length:<span id="historylength"></span></h2>
	<h2>window.location:<span id="location"></span></h2>

	<script type="text/javascript">
		document.getElementById('innerWidth').innerHTML=window.innerWidth;
		document.getElementById('innerHeight').innerHTML=window.innerHeight;
		document.getElementById('screenwidth').innerHTML=window.screen.width;
		document.getElementById('screenheight').innerHTML=window.screen.height;
		document.getElementById('historylength').innerHTML=window.history.length;
		document.getElementById('location').innerHTML=window.location;
	</script>
</body>
</html>

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 Jerry 的頭像
    Jerry

    Bug倉庫 // 程式日記

    Jerry 發表在 痞客邦 留言(0) 人氣()