After performing a search and displaying the results on my search form, I've noticed that the text query in the textfield is being marked as selected text even though I don't want it to be. How can I prevent this?
1) What is the best approach for displaying the search field after returning from a search? Should the field be focused like Google does, or should the query string be displayed in the search field without focus like I have implemented so far?
2) How can I implement a solution to this issue?
This is what I have currently:
<input placeholder="Search" name="query" size="20" id="searchtext" title="Search" class="placeholder" alt="q" type="text" value="{{query}}"><script type="text/javascript">
document.getElementById('searchtext').focus()
</script>