await SpecialPowers.spawn(aBrowser, [], async function () { var window = content.window.wrappedJSObject; var document = window.document; var formTarget = document.getElementById("formTarget"); var initValue = document.getElementById("initValue");
window.loadPromise = new Promise(resolve => {
formTarget.onload = resolve;
});
initValue.focus();
initValue.value = "foo";
});
EventUtils.synthesizeKey("KEY_Enter");
await SpecialPowers.spawn(aBrowser, [], async function () { var window = content.window.wrappedJSObject; var document = window.document;
await window.loadPromise;
var newInput = document.createElement("input");
newInput.setAttribute("name", "test");
document.body.appendChild(newInput);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.