[Vimperator] javascript simple question

Martin Stubenschrott stubenschrott at gmx.net
Wed Jul 9 12:52:12 PDT 2008


Richard Terrell wrote:

> i have a question about using javascript on the command line.  i've
> tried this:
> 
> 
> :javascript alert(document.location);
> 
> but this gives me:
> 
> chrome://browser/content/browser.xul
> 
> 
> 
> but what i wanted was the document that i'm currently viewing.

:javascript alert(content.document.location)


More information about the Vimperator mailing list