Wiki Select Bookmarklet

is a WikiBookmarklet to view a page whose name is the text selected on a page. This is used to view one of the pages listed by clicking on the LikePages link provided at the foot of each page.

javascript:location.href='http://c2.com/cgi/wiki?'+document.getSelection();

The above works in Netscape; for Internet Explorer, use

javascript:location.href='http://c2.com/cgi/wiki?'+document.selection.createRange().text;

For either of the above, use

 javascript:if (document.getSelection) {location.href='http://c2.com/cgi/wiki?'+document.getSelection()} else location.href='http://c2.com/cgi/wiki?'+document.selection.createRange().text;

(Does any other browser require something different?)

To use, select text which forms a WikiName (by dragging the cursor across the text) then invoke the bookmarklet.

(See BookMarklet for instructions on using Bookmarklets.)


EditText of this page (last edited July 27, 2003) or FindPage with title or text search