<!DOCTYPE html>
<div id="button" style="width: 200px; height: 200px"></div>
<input type="text" id="input"></input>
<script>
document.querySelector("#button").addEventListener("click", function() {
document.querySelector("#input").focus();
});
</script>