[Home]Wikipedia/Magic Button

HomePage | Wikipedia | Recent Changes | Preferences

Showing revision 1

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.

<a href=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.href='http://www.wikipedia.com/search.fcgi?client=magic_button&request='+escape(q)>Just drag this link up to your navigation toolbar</a>

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


HomePage | Wikipedia | Recent Changes | Preferences
This page is read-only | View other revisions | View current revision
Edited October 17, 2001 8:30 am by Jimbo Wales (diff)
Search: