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.
精彩评论