It seems that the JS bookmarklet cannot get the current URL from the browser address bar if the page of URL is not loaded. I have tried the followings but not work. (in FF 19.0.2)
- window.location.href
- document.location.href
- self.location.toString()
Is is possible to load URL from bookmarklet without loading it?