p208_form_events.htm
来自「javascript source code part2」· HTM 代码 · 共 28 行
HTM
28 行
<HTML><HEAD><SCRIPT>
function applause()
{
var answer = "Man is correct!\n" +
"Man crawls when young, " +
"walks when adult, " +
"and uses a cane in old age\n" +
"\nShould you meet a riddling Egyptian Sphinx," +
"you'll be perfectly safe";
alert(answer);
}
</SCRIPT></HEAD>
<BODY><FORM>
<H1>Riddle Page</H1>
What goes on four legs in the morning,
two during the day
and three in the evening?
<BR> <INPUT TYPE="radio"
ONCLICK="alert('You seem confused too')">
</INPUT>
A confused table
<BR> <INPUT TYPE="radio"
ONCLICK="alert('Perhaps you have had too much Sun?')">
</INPUT>
The Sun
<BR> <INPUT TYPE="radio" ONCLICK="applause()"> Man </INPUT>
</FORM></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?