Простой вопрос. Как получить доступ к элементу location из нижеприведенного файл .xul?
| Код | <?xml version="1.0"?>
<!-- Localization Information --> <!DOCTYPE overlay SYSTEM "chrome://hpsched/locale/hpsched.dtd">
<overlay id="hpsched_browser_overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- Include the javascript code --> <script type="application/x-javascript" src="chrome://hpsched/content/browser.js" />
<!-- Init only if this is an actual browser window (not prefs or something) --> <window id="main-window"> <script type="application/x-javascript"> window.addEventListener("load", HPsched_init, false); </script> </window>
<toolbox> <toolbar id="nav-toolbar"> <button id="callCOM" label="Call XPCOM" onclick="buttonCOMPressed(event);"/> <label id="location" value="This is location"/> </toolbar> </toolbox> </overlay>
|
|