window.addEventListener('load', function() {
  const searchInput = document.getElementById('搜索框id');
  searchInput.focus();
});