3.47 自动保存网页输出的文本.htm
来自「一些javascript的小例子希望对初学者有更好的帮助」· HTM 代码 · 共 17 行
HTM
17 行
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>标题页</title>
<script>
window.onload=function()
{
document.open("text/html"); //打开窗口
document.write("把这些文字保存起来!!!!!");//输出内容
document.execCommand("saveAs","true","我的网页");//打开另存为对话框
document.close(); //关闭文档
}
</script>
</head>
<body>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?