Use the focus method to leave the cursor in the INPUT box by default
- 2020-03-30 03:37:59
- OfStack
<body onload="document.getElementById('inputTxt').focus()">
<input type="text" id="inputTxt" />
<body onload="document.getElementById('inputTxt').focus()">
<input type="text" id="inputTxt" />