autocomplete="on" or off for search field code example
Example 1: how to make html input not autofill
<input type="text" autocomplete="off" />
Example 2: disable autocomplete javascript
someForm.setAttribute( "autocomplete", "off" );
someFormElm.setAttribute( "autocomplete", "off" );