js基础9

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>BOW</title>
	<script type="text/javascript">
		document.write("文档内容文档内容文档内容");
		document.write("<br>");
		document.write("文档显示区域的宽度:"+window.innerWidth);
		document.write("<br>");
		document.write("文档显示区域的高度:"+window.innerHeight);
		document.write("<br>");
		document.write("浏览器的宽度:"+window.outerWidth);
		document.write("<br>");
		document.write("浏览器的宽度:"+window.outerHeight);
		document.write("<br>");

		function open(){
			myWindow = window.open("/");
		}
	</script>
</head>
<body>
	<button onclick="open()">打开一个新的窗口</button>
		
</body>
</html>

猜你喜欢

转载自blog.csdn.net/weixin_43293451/article/details/91389953
JS9