📄 p225_read_only_fields.htm
字号:
<HTML><BODY><FORM>
<!-- This case works for "text", "textarea" and "password" types -->
<INPUT TYPE="text" NAME="first" VALUE="Important" ONCHANGE="this.value=this.real">
<SCRIPT>
document.forms[0].first.real = document.forms[0].first.value;
</SCRIPT>
<!-- This case works for all checkboxes and for radio button groups of one -->
<INPUT TYPE="checkbox" NAME="second" ONCLICK="this.checked=!this.checked;">
<!-- This case works for radio button groups of more than one button -->
<INPUT TYPE="radio" NAME="third" CHECKED>
<INPUT TYPE="radio" NAME="third" ONCLICK="this.form.third[0].click()">
<INPUT TYPE="radio" NAME="third" ONCLICK="this.form.third[0].click()">
<!-- This case is solely for SELECT -->
<SELECT NAME="fourth" ONCHANGE="this.selectedIndex=this.realIndex">
<OPTION SELECTED VALUE="A"> Apples
<OPTION VALUE="B"> Banana
</SELECT>
<SCRIPT>
document.forms[0].fourth.realIndex = document.forms[0].fourth.selectedIndex;
</SCRIPT>
</FORM></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -