Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to put a variable in xul to a html page?

12 views
Skip to first unread message

Nero.Ping

unread,
Dec 27, 2011, 1:45:46 AM12/27/11
to
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.

Tei

unread,
Dec 27, 2011, 9:36:27 AM12/27/11
to dev-te...@lists.mozilla.org
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.
0 new messages