problem to pop up a window in firefox plugin
hi I am creating firefox plugin.I have one button-1.png image and I have added it to customize toolbar.I have used one button.xul file to add button in toolbar.I have also used chrome.manifest, install.rdf,button.css,button.js. It is showing button in toolbar,I dragged that but开发者_如何转开发ton and dropped on toolbar. Now my question is, when I click on that button, I want to pop up a small window. so please tell me,what should I write in button.xul & button.js to pop up a small window. How will I get a pop up window,when I click on a button? What changes I need to do in button.xul & button.js?
You can use the window.open method to open a popup window. Take a look at this link. If you want to open a popup(and not a window) then you can use a panel. You can anchor a panel to an element (say button) when opening it using the openpopup method. Some examples are available here as well.
精彩评论