General
: K-Meleon Forum
General discussion about K-Meleon.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=asktome] Hi to all i want to simulate the .click() function for all Firefox based Browser. All work good in IE if i use this function: [code]javascript:document.getElementById("BUTTON_ID").click();[/code] But Firefox doesnt support that, i have found this articole [url=http://lifescaler.com/2008/04/simulating-mouse-clicks-in-javascript/]here[/url] i have load my page in kmeleon and inserct this into the url bar: [code]javascript:HTMLElement.prototype.click = function() {var evt = this.ownerDocument.createEvent('MouseEvents');evt.initMouseEvent('click', true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null);this.dispatchEvent(evt);} document.getElementById("BUTTON_ID").click(); [/code] But nothing is happened...how i can do that? Hi![/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development