开发者

Is it possible to trigger a browser's event handlers without input devices?

Is it possible to trigger a browsers event h开发者_如何学Candlers without input devices? Can someone with a modified browser or any other method trigger an event handler in a page they requested without physical input devices?


Sure you can use the respective name of the event and invoke it, for example, DOMElement's onclick event handler:

element.onclick(); //invokes all of the attached onclick handlers


They can use automated web browsing tools, like the iMacros add-on for Firefox or WebDriver for Chrome.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜