Onclick和OnBlur功能 [英] Onclick and OnBlur functionality
本文介绍了Onclick和OnBlur功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的电话号码字段已经包含一些值,例如(###)###-####.我使用onclick函数显示消息和onblur我正在关闭信息,但onclick无法正常工作.我需要任何想法强制模糊行动吗?
感谢您的帮助.
Hi,
I have phone number field which it already contains some value like (###)###-####. I use onclick function to display message and onblur I am using to turn off messgae but onclick is working not onblur. Do I need any idea to force onblur action.
Thanks for help.
推荐答案
可能是您的代码有任何问题.看这个
onblur事件 [ ^ ]
May be your code has any issue. Look at this
onblur Event[^]
使用Javascript调试器.除非您无法显示异常阻止您将事件处理程序运行到最后,否则不要用不起作用"的语句来提问.另一种方法(效率较低):在处理程序主体中捕获所有异常,并在屏幕上显示异常消息.
—SA
Use Javascript debugger. Don''t ask a question with the statement "not working" unless you cannot show exception preventing you from running your event handler to the end. Another way (less productive): catch all exception in handlers body and present exception message on screen.
—SA
这篇关于Onclick和OnBlur功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文