Get text (not url) from address bar in Google Chrome

Posted by Cyclone on Stack Overflow See other posts from Stack Overflow or by Cyclone
Published on 2010-04-19T23:16:06Z Indexed on 2010/04/19 23:23 UTC
Read the original article Hit count: 370

Filed under:
|

I want to retrieve the text that the user has typed into the currently visible address bar, using Javascript. This is for google chrome only.

Is this possible? I know you can get the document URL via window.location.href, but I am unable to locate any javascript pertaining to current code inside the address bar/omnibar.

Thank you for the help!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about google-chrome