📄 load.js
字号:
// specify the onload event-handler
window.onload = init;
// specify the onunload event-handler
window.onunload = term;
// a function to react to the LOAD event
function init()
{
// set an initial textbox value
document.getElementById("box-1").value="The Page Is Loaded";
}
// a function to react to the UNLOAD event
function term()
{
alert("Thanks for visiting\nCome back soon");
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -