XULWidget
is the class which represents any XUL control
id
attribute which allow them to be searchable in their parent XULDocument.<window id="Test" title="Test XULScripts" orient="horizontal" onload="loaded()" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script> function clicked() { document.getElementById("theButton").label = "No"; } </script> <button id="theButton" label="Yes" oncommand="clicked()" /> </window>
document.getCurrentWidget()
getCurrentWidget()
document.getCurrentWindow()
getCurrentWindow()
document
property, such as:var widget = document.getElementById("open");For example in Javascript:
var widget = document.getcurrentWindow();
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence