Blog Planet Wiki
Feed Feed It

Google Browser Bar

Wednesday, February 02, 2005 01:53 PM

Here's an awesome piece of javascript thanks to the Google people!!! So if you goto Google's Browser Buttons website. You will find that they have this cool think that you could drag to your browser link bar. See Picture below, hijacked from Google's website of course!!!


So all you have to do is say you are cruising along websurfing...and then you want to google something, no worries just highlight the text in question, and click this link/button on your link bar and baam!!! You get a google search result page!. So I did some investigating in trying to see how they did this wonderful little tool, and I found that it's all just javascript!!!! Now I know everyone has been talking about how Google has really made use of what once was written off as a hackish way of doing nice automated menus and blocking of right clicking on sites, but seriously Google really has made use of this scripting language, I mean look at Gmail, and Google Suggest! Wow!! Those are some really good features to bring to the browser world! Pretty cool if you ask me, well so here's the javascript code I found while investigating.
javascript:q=document.getSelection();for(i=0;i