日期:2014-05-16  浏览次数:20362 次

为什么没反应
<html>
<head>
<script   language= "JavaScript ">
<!--     hide   script   from   old   browsers
    function   getname(str)   {
        alert( "哈罗!   "+   str+ "! ");
    }
//   end   hiding   contents   -->
</script>
</head>
<body>
Please   enter   your   name:
<form>
    <input   type= "text "   name= "name "   onBlur= "getname(this.value) "   value= " ">
</form>
</body>
</html>
为什么没有反应

------解决方案--------------------
有反应啊 是失去焦点的时候 不信你试试
------解决方案--------------------
jf