在一个元素点击后不执行获得焦点元素的失去焦点事件 修改input失去焦点事件代码不行吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 重写下onblur事件就可以了obj.onblur=function(){clickFunction();blurFunction()} 我是用ajax的..我要等ajax返回才能得到值的啊. <script>function f(){ oBndRct=button1.getBoundingClientRect(); if(event.clientX>oBndRct.left&&event.clientX<oBndRct.right&&event.clientY>oBndRct.top&&event.clientY<oBndRct.bottom) alert("click button1") else alert("click obj is not button1") }</script><body><input type="text" onblur="f()"/><input value="click me" type="button" id="button1" /><input value="click me" type="button" id="button2" /></body> button如何居右 一个非常小的JQuery问题~ 网页调整flash的高度 在线求助,要在此方法上写多个应用 在网页中打开pdf文档,如何隐藏“保存副本“按钮,或隐藏工具栏? 管理员请进!为什么http://expert.csdn.net/Expert/topic/1917/1917941.xml?temp=.869198不能回复呢?? 怎样将已有的javascript文件放在一个button中 各位有没有碰到过这样的关于层的使用的杂症?????急死我了, 进来看看吧,多谢了!! 请教,我想控制框架的滚动条,应如何办? 后台返回list 怎样遍历在页面table 多链接问题 求用法的出处
obj.onblur=function(){clickFunction();blurFunction()}
function f(){
oBndRct=button1.getBoundingClientRect();
if(event.clientX>oBndRct.left&&event.clientX<oBndRct.right&&event.clientY>oBndRct.top&&event.clientY<oBndRct.bottom)
alert("click button1")
else
alert("click obj is not button1")
}
</script>
<body>
<input type="text" onblur="f()"/>
<input value="click me" type="button" id="button1" />
<input value="click me" type="button" id="button2" />
</body>