Team:UCL London/templates/v2/overall header
From 2010.igem.org
(Difference between revisions)
Line 39: | Line 39: | ||
function submitQuery() { | function submitQuery() { | ||
- | window.location = 'Team:UCL_London/Search?q=' | + | window.location = 'https://2010.igem.org/wiki/Team:UCL_London/Search?q=' |
+ encodeURIComponent( | + encodeURIComponent( | ||
- | document.getElementById(' | + | document.getElementById('searchbox').value); |
return false; | return false; | ||
} | } | ||
Line 63: | Line 63: | ||
<div id="search"> | <div id="search"> | ||
<form onsubmit="return submitQuery()"> | <form onsubmit="return submitQuery()"> | ||
- | <input id=" | + | <input id="searchbox" 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:44, 29 August 2010