script05.js
来自「图灵程序设计丛书 JavaScript基础教程源代码」· JavaScript 代码 · 共 15 行
JS
15 行
window.onload = initWindows;function initWindows() { if (document.getElementById("childField")) { document.getElementById("childField").onchange = updateParent; } else { newWindow = window.open("child.html","newWin","status=yes,width=300,height=300"); }}function updateParent() { opener.document.getElementById("msgLine").value = "Hello " + this.value + "!";}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?