xml - Firefox Add-ons, How to execute javascript function onLoad? -
I'm new to the Firefox add-on. I want to create a simple Firefox add-on which automatically adds HTML element to the page on the document load. Honestly, I want to add an extra BBCDE / smiley toolbar to any existing textran
I found an example of an XML file:
Is it easy to create a toolbar, popup menu or keyboard shortcuts using the above script?
I want to know what the XML code is on the page load (without command command from popup, toolbar or keyboard shortcuts) automatically execute the javascript function.
I hope that you understand with my question and I thank you whoever helps me.
In your XUL file, you & lt; Script & gt;
add tags> & lt; Overlay & gt; Tags:
& lt; Overlay xmlns = ... & gt; ... other tags here ... & lt; Script type = "app / x-javascript" src = "your_script.js" /> & Lt; / Overlay & gt;
Then inside your_script.js
, you can execute whatever JavaScript you want.
Here is the load
event handling.
Comments
Post a Comment