<form method="GET" action="https://duckduckgo.com/">
<input name="q" type="text"/>
<button type="submit">Go</button>
</form>
This is a fully functional search bar. This is all it needs to be. It doesn’t need Javascript, only if you want suggestions.
The last time I checked, Google still works if you simply pass your query in the URL using the q
variable. Google has no need to enforce Javascript.
It’s not about looks, it’s about functionality. I could add a hundred lines of CSS to make it sparkle without touching Javascript. I could think of a dozen convenience features that would require Javascript, but none that, if disabled, would prevent the search bar from functioning as a search bar.