views:

46

answers:

1

Hi ,

I am looking for to fetch current tab (loaded or blank ) URL of Firefox browser. How to acheive this ? using currentURI property in javascript.

Thanks a lot,

-Pravin

A: 

Is your code running inside an addon? You could use: gBrowser.currentURI.spec

Fábio
Yes...code runs in addon.
pravin