I've that function fixed now. Thanks

On Sat, Apr 12, 2008 at 2:31 PM, newbeee <[EMAIL PROTECTED]> wrote:

>
> whenever i insert the following code into my js file referenced by the
> toolbar, and install the toolbar none of the toolbar functions(just pop up
> messages to check event handlers) accessed by any of the buttons
> work(these
> worked previously), any ideas what's going wrong? or what i could try?? i
> can't see what i'm doing wrong
>
> [CODE]
> function BGColour(event)
> {
> var currentDocument = getBrowser().getBrowserForTab( getBrowser
> ).selectedTab ).contentDocument;
> currentDocument.body.style.backgroundColor = "magenta";
> BrowserReload();
> }
> [/CODE]
>
> :-/
> --
> View this message in context:
> http://www.nabble.com/Toolbar-to-change-background-colour-of-web-pages-tp16447325p16648703.html
> Sent from the XUL - User mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>  _______________________________________________
> XUL News Wire      - http://xulnews.com
> XUL Job Postings   - http://xuljobs.com
> Open XUL Alliance - http://xulalliance.org
> _______________________________________________
> xul-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xul-talk
>
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
XUL News Wire      - http://xulnews.com
XUL Job Postings   - http://xuljobs.com
Open XUL Alliance - http://xulalliance.org  
_______________________________________________
xul-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xul-talk

Reply via email to