Newsgroups: mozilla.dev.tech.xul
From: Michael Hofer <dev-tech-...@erstes.ml1.net>
Date: Tue, 14 Feb 2012 18:05:55 +0100
Local: Tues, Feb 14 2012 12:05 pm
Subject: Programmatically typing into a textbox (KeyboardEvent)
Hello,
I want to programmatically type into a xul textbox (xulrunner 2.0). XUL:
<textbox id="testbox"/>
JS (triggered on button command);
var test_el = document.getElementById("testbox");
var canceled = !test_el.dispatchEvent(evt);
A similar example with MouseEvents (click) triggering a checkbox works regards,
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||