I’ve used XUL to create a toolbarbutton. When I click on this button, I want a div to popup in the same style as clicking on an extension in Google Chrome. How can I accomplish this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to add HTML elements to XUL document, you have to define the namespace for it:
Then you can add HTML elements, but you have to prefix the tag names with the namespace. Like this:
You can find more info and examples in the official documentetion at Mozilla Developer Network.