Re: how to put a variable in xul to a html page?
Tei <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xpfe |
|---|---|
| Message-ID | <CACg3zYG75Y=-daUV7_qiufwF1j95kzc_ShTyHQfMf3hzYQ6PeQ@mail.gmail.com> |
On 27 December 2011 07:45, Nero.Ping <[email protected]> wrote: > Hi, all: > I hope to put a variable in XUL to a special web page in my > extension. Just like the firebug put the console object to the page. > Then my page's js code can use some functions in the XUL. > But I don't konw how to do it. who can give me a solution? > thanks. I don't understand, perhaps you have trought of simply embeding a script tag, with the body code of the function, and I don't know why this is not ok for you. <script> var foo = { bar: function () {} }; </script> <button onclick="foo.bar()" /> -- -- ℱin del ℳensaje. _______________________________________________ dev-tech-xul mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xul