<style>
.container {
  width: 100px;;
  height: 100px;
  background-color: green;
  overflow: hidden;
}
</style>
<div class=container>
  <input id=inputField>
</div>
<script>
inputField.focus();
inputField.value = "text";
</script>
