日期:2014-05-17 浏览次数:20701 次
<html> <head> <script type="text/javacript"> function upperCase_() { var x = document.getElementById("fname").value; document.getElementById("fname").value = x.toUpperCase(); } function test() { alert("come on"); } </script> </head> <body> 输入姓名: <input type="text" id="fname" onblur="upperCase_()"> </body> </html>
<html> <head> <script type="text/javascript"> function upperCase_() { var x = document.getElementById("fname").value; document.getElementById("fname").value = x.toUpperCase(); } function test() { alert("come on"); } </script> </head> <body> 输入姓名: <input type="text" id="fname" onblur="upperCase_()"> </body> </html>
------解决方案--------------------
加上“s”<script type="text/javascript">,就ok
------解决方案--------------------
我是原封不动地朝的啊??????????