📄 window_reference.htm
字号:
<html><head><title>Getting and using a window reference</title>
<script language="JavaScript">
<!-- hide me
// open a new window and get a reference to it
var new_window = window.open("hello.html","html_name","width=200,height=200");
// blur the new window
new_window.blur();
// show me -->
</script>
</head>
<body>
<h1>A new window has been opened and moved to the background.</h1>
<a href="#" onMouseOver="new_window.focus();">Bring it forward</a><br>
<a href="#" onMouseOver="new_window.blur();">Put it backward</a><br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -