⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 p208_form_events.htm

📁 javascript source code part2
💻 HTM
字号:
<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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -