user1016313
user1016313

Reputation: 1314

Open a panel in a firefox extension using javascript

I am developing an extension for firefox. I have a panel as follows -

<panel id = "popup_text" width = "300">
  Text here  
</panel>  

This pops up when i click on a label using this code :

<label value="FFWTS" popup="popup_text"/>

I want to make this panel popup automatically, using javascript. How can I do this?

Upvotes: 1

Views: 764

Answers (1)

Wladimir Palant
Wladimir Palant

Reputation: 57651

You use panel.openPopup() or panel.openPopupAtScreen(), e.g.:

document.getElementById("popup_text").openPopupAtScreen(200, 200, false);

Upvotes: 1

Related Questions