开发者

Unable to access panel from script

In my browser.xul file I have a panel element:

<panel id="panel1">
   <!-- Elements -->
</panel>

When I try:

window.document.getElementById("panel1").openPopup(button, "after_start", 0, 0, false, false);

the browser says that:

window.document.getEle开发者_Python百科mentById("panel1") is null.

Am I missing anything here?


it's my first time I see panel tag in html..

are you sure you don't mean :

<div id="panel1">
....
</div>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜