📄 ex11-10.htm
字号:
<html>
<head><title>多行文本框应用演示 </title></head>
<font face=宋体 >
<body bgcolor="#CCFFCC">
<center>
<form name="form1"><b>
唐诗
<br><b>
<textarea name="poem" rows=6 cols=50" >
《赤壁》
作者:杜牧
折戟沉沙铁未销,自将磨洗认前朝。
东风不与周郎便,铜雀春深锁二乔。
</textarea><br>
<input type=button value="改变多行文本框的可用性"
onclick="javascript:document.form1.poem.disabled= ! document.form1.poem.disabled" >
</form>
</center>
<script language="JavaScript">
<!--
document.write( "输入域的类型为:<em> "+document.form1.poem.type);
document.write( "<br></em>输入域的名称为:<em>"+document.form1.poem.name);
document.write( "<br></em>多行文本框的值为:<em>"+document.form1.poem.value);
document.write( "<br></em>多行文本框的行数为:<em>"+document.form1.poem.rows);
document.write( "<br></em>多行文本框的列数为:<em>"+ document.form1.poem.cols);
alert(document.form1.poem.value);
// -->
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -