Encyclopedia > Wikipedia:Magic Button

  Article Content

Wikipedia:Magic Button

I have created for myself a little Wikipedia button in my browser that I find very useful. I want to share it with you now. It works perfectly
for me in Netscape under Linux, but I assume there will be a few minor
problems with Windows and IE.

NEW: there is a Windows IE version and a Netscape version. I look forward to feedback on both...

(For now visit this page: Magic Button Instructions (http://www.wikipedia.com/texts/magic_button)

Then, you can go to any web page, highlight any text of interest, click the button and magically search on Wikipedia for that text.

Please add comments here, which I can switch to the other page. The reason I don't put the javascript right here on this page is that the
wikipedia software justifiably doesn't like javascript on the pages.

See also : Wikipedia

since the link is not working I post some small modifications I made to
Jimmy's magic button. This works with Mozilla with the new wikipedia
software, just drag the code below to your bookmarks bar.

javascript:q=document.getSelection();for(i=0;i<frames.length;i++){q=frames[i].document.getSelection();if(q)break;}if(!q)void(q=prompt('Enter text to search using Wikipedia. You can also highlight a word on this web page before clicking Wikipedia.',''));if(q)location./w/wiki.phtml?search='+escape(q)



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Brazil

... as a large labour pool, Brazil's economy outweighs that of all other South American countries and is expanding its presence in world markets. Major export products ...

 
 
 
This page was created in 38.6 ms