I am trying to update the css attribute for a toolbarbutton but the following does not work:
document.getElementById('toolbar-button').style.listStyleImage = url("chrome://ext/skin/toolbar-button-add.png");
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.
Is that line of code you posted directly copy and pasted from your code?
Because if it is, you are missing the
'around the value. It should beAlways watch the debug console as this would have been revealed in the console as something like
'url': is not a functionor something like that.