Current URL in FireFox

I required this while creating an extension for Firefox that bookmarked the current URL at some site. After some hacking I found that the Address bar object that displays the current tab’s URL has the id set to ‘urlbar’ Following simple Javascript code accomplishes the task var obj = document.getElementById(“urlbar”); returns the reference of the […]