Team:UCL London/templates/v2/overall header
From 2010.igem.org
(Difference between revisions)
Line 38: | Line 38: | ||
}); | }); | ||
+ | function submitQuery() { | ||
+ | window.location = 'Team:UCL_London/Search?q=' | ||
+ | + encodeURIComponent( | ||
+ | document.getElementById('query-input').value); | ||
+ | return false; | ||
+ | } | ||
</script> | </script> | ||
Line 56: | Line 62: | ||
<div id="search"> | <div id="search"> | ||
- | <form | + | <form onsubmit="return submitQuery()"> |
- | <input id=" | + | <input id="query-input" type="text" value="Search..." name="search" onfocus="if (this.value == 'Search...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search...';}" /> |
<input type="submit" id="search-bt" value="" /> | <input type="submit" id="search-bt" value="" /> | ||
<input type="hidden" name="sitesearch" value="https://2010.igem.org/Team:UCL_London" /> | <input type="hidden" name="sitesearch" value="https://2010.igem.org/Team:UCL_London" /> |
Revision as of 14:41, 29 August 2010