Displaying 1 result from an estimated 1 matches for "getsearchstr".
2004 Jun 21
0
Bookmarklet for searching R documentation
...ied the code to submit searches to the R
search engine. I tested the following using Firefox 0.9 on Windows 2000.
Create a bookmark called "search R doc" (or whatever) with the following
text as the "location". (Note, this is one long line)
javascript:(function(){ function getSearchString (promptString) { s = null;if (document.selection && document.selection.createRange) { s =document.selection.createRange().text; } else if (document.getSelection) { s= document.getSelection(); } if (! (s && s.length)) { s =prompt(promptString,''); } return s; } searchStrin...