<!DOCTYPE html>
<input type=search placeholder="foo">
<input type=search value="query">
<script>
document.querySelectorAll('input')[1].focus();
</script>
<!DOCTYPE html>
<input type=search placeholder="foo">
<input type=search value="query">
<script>
document.querySelectorAll('input')[1].focus();
</script>