If you want to be able to hit enter in order to trigger the search, here's
a slightly *enhanced version* of the aforementioned *[[Google Search]]*tiddler
that allows you to do just that...
<html>
<div class="g-search">
<input
id="$1"
class="g-search-input"
type="text"
onkeydown="window.doCustomSearch(event,this)"
onfocus="
if(!window.doCustomSearch) {
window.doCustomSearch = function(e,el) {
var ev = e||window.event;
if(ev && ev.keyCode == 13) {
el.nextSibling.click();
}
}
}
"/><input
class="g-search-button"
type="button"
value="search"
onclick="javascript:
var el = document.getElementById('$1');
window.open('http://www.google.com/cse?cx=$1&q='+el.value, '_blank');
window.focus();
"/>
</div>
</html>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.