How to set the focus of HTML elements


Copy code

The code is as follows:

<form action=”” method=”post” name=”form1″ >

<input type=”text” />



<script> function myfocus() { document.getElementById(‘id’).focus(); } </script>

Recommended Today

Oracle (PLSQL) introduction 1

Oracle installation, user authorization, table operation, data type, DDL table, DML data. Next: Oracle introduction 2 Learning video: Baidu cloud installation package is attached to the installation tutorial: 40774525/article/details/79919057 Oracle Baidu cloud installation package: Extraction code: 5abz After the Oracle service above is installed, open the client of SQL developer and the […]