[thelist] Google bookmark (was real men code by hand...)
Richard Bennett
richard.bennett at skynet.be
Mon Mar 18 18:18:01 CST 2002
----- Original Message -----
From: "John Dowdell" <jdowdell at macromedia.com>
<tip>
Bookmarklet for beta Google News... works on page's current selection, or
provides a text-entry prompt with desired default term:
javascript:Qr=document.getSelection();if(!Qr){void(Qr=prompt('Search Google
News:','britney'))};if(Qr)location.href='http://news.google.com/news?q='+
escape(Qr)+'&num=10'
Paste as the location for a new bookmark. Watch for linebreaks through
email.
</tip>
Nice, but do you know what the void() is in there for? Would that handle
people pressing the "cancel" button?
Richard
More information about the thelist
mailing list