search

Home  >  Q&A  >  body text

我想知道为什么这一简单程序为什么没反应,而且弹窗提示怎么变成内容了?

<!DOCTYPE HTML>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title> 内容选中事件 </title>
<script type="text/javascript">
  function message() {
    alert("您触发了选中事件!"); }
</script>    
</head>
<body>
  <form>
  个人简介:<br>
   <textarea name="summary" cols="60" rows="5" onselect="message()">请写入个人简介,不少于200字!</textarea>
  </form>
</body>
</html>


看透不说透看透不说透2904 days ago804

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 23:08:04

    I want to know why this simple program is not responding, and how did the pop-up prompt become content? -PHP Chinese website Q&A-I want to know why this simple program does not respond, and how does the pop-up window prompt become content? -PHP Chinese website Q&A

    Please watch and learn.

    reply
    0
  • 迷茫

    迷茫2016-12-20 14:07:45

    你要选中文本域内的中文字才会有弹出框

    reply
    0
  • Cancelreply