onblur()不使用mozilla [英] onblur() not working with mozilla

查看:93
本文介绍了onblur()不使用mozilla的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正面临onblur()事件的问题。要求是当我点击我的html页面中的一个小图标时,应该出现一个包含一些文本消息的小矩形叠加层,当我点击页面上的任何其他位置时它应该消失。


我已经使用java脚本实现了这种情况。为了使用java脚本过度使用,div的显示属性变得可见,并且隐藏了相同的叠加层我使用了onblur()事件。


< div id = " linker3"类= QUOT;接头"的onblur = QUOT; showBlur( linker3’ )" > < / div>

id linker3是弹出层的名称,因为我使用了5个类似的弹出窗口。


类链接器定义了属性弹出。

Hi,

I am facing an issue with the onblur() event. The requirement is when i click a small icon in my html page a small rectangular overlay containing some text message should appear and it should disappear when I click any where else on the page.

I have implemented the situation using java script. To bring the overaly using java script, the display property of a div is made visible and to make the same overlay hidden i have used the onblur() event.

<div id="linker3" class="linker" onBlur="showBlur(''linker3'')" > </div>
The id linker3 is the name of the popup layer as i use 5 similar pop ups.

class linker defines the properties of the pop up.

展开 | 选择 | Wrap | 行号

推荐答案

您是否检查了firefox错误控制台中出现的错误?
Did you check what error appears in the firefox error console?


错误控制台中不显示错误。问题是由于mozilla没有识别onblur()事件。
No error is shown in the error console. Is the issue due to the fact that mozilla doesn;t recognize onblur() event.


Firfox确实识别onblur函数。但是,请确保在调用函数时是否正常,例如在函数内插入alert()。
Firfox do recognize onblur function. Though, make sure that if the function is being called or not, something like inserting alert() inside the function.


这篇关于onblur()不使用mozilla的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆