菜单切换
FACESOHO知行者
心灵
记录
远方
赞赏工具
源代码:
点击运行
保存
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>小鸟启蒙(facesoho.com)</title> <script> function showMsg() { alert("你选取了一些文本信息!"); } </script> </head> <body> Some text: <input type="text" value="选取我!!" onselect="showMsg()"> <p>showMsg() 函数在选取输入域文本信息时触发。 该函数弹出了一些信息。</p> </body> </html>
运行结果