-
How to read URL in FF extension
Hi,
I am trying to develop a small FF extension, where user clicks on my menu item and app alerts current URL and Title of the document.
When I open www.google.com and click my menu I should get alert title=Google - Mozilla Firefox and href=www.google.com
I am getting title correctly but href is "chrome://browser/content/browser.xul"
How should I read my original href i.e. www.google.com
alert statements in js files are...
alert(document.location.href);
alert(document.title);
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
Bookmarks