document.elementFromPoint(x,y); not working

谁说我不能喝 提交于 2019-12-02 01:24:20

It is true both Firefox and gtkmozembed use Gecko rendering engine, but versions of engines you are trying your code in may be different, so that the function may be or may be not available.

Worth noticing, it is hardly necessary to use this function in reality - you can approach the problem from the other side - check the event.target property to see where your mouse event was originated.

BTW: document.elementFromPoint function is another example of great yet proprietary technology originated from Internet Explorer. As many other good features it was picked up only recently and implemented by many vendors including Mozilla.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!