实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<script>
5
function openWin()
6
{
7
myWindow=window.open('','');
8
myWindow.document.write("<p>This is 'myWindow'");
9
myWindow.document.write("<br>ScreenX: " + myWindow.screenX);
10
myWindow.document.write("<br>ScreenY: " + myWindow.screenY + "</p>");
11
}
12
</script>
13
</head>
14
<body>
15
16
<input type="button" value="Open 'myWindow'" onclick="openWin()">
17
18
</body>
19
</html>