text-area.js
来自「这是《JavaScript学习源代码》一书的源代码」· JavaScript 代码 · 共 9 行
JS
9 行
// a function to write text content in a text area
function write_text()
{
// assign a string to the textarea field
document.forms.f.txtarea1.value = "Computers in the future may perhaps only weigh 1.5 tons. (Popular Mechanics forecasting the development of computer technology, 1949)" ;
}
// define the onload function
window.onload = write_text;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?