I am developing my first addon for Firefox, and I'm using the Extention Developer addon to help me. It has a real time XUL editor which I am using to design my form.
At the moment this is what I have:
I want to automatically populate the siteName textbox with the current URL when that form is loaded. And perhaps add some input validation so if there's no page loaded at that time it will show an error?
I'm new to XUL and developing Firefox addons. I have read through a lot of their documents already but I am still learning.
Add a function call to the "onload" event attribute of your window.
The following page got me sorted with a similar requirement: