<!DOCTYPE HTML>
<html>
<head>
  <style type="text/css">input{border: none}</style>
</head>
<body>
  <input id="button2" type="button"/>
  <div id="target"><div><input id="button" type="button"/></div></div>
<script>
document.getElementById("button2").focus();
</script>
</body>
</html>