Closed erjoalgo closed 9 years ago
This is intended - window
object corresponds to window itself - chrome window.
Use content
for content window of currently selected tab.
Where is this context
documentation? Can you please tell me how to get the URL of the current window?
Sorry, I've made a tipo - content
, instead of context
.
Documented (as always) on MDN: content
.
So to get url of browser content of selected tab of topmost browser window, you should write:
repl> content.document.location.href
"https://github.com/bard/mozrepl/issues/64#issuecomment-137261813"
thanks, this worked well
Shouldn't this be https://github.com/bard/mozrepl/wiki/Tutorial ?