How to set the focus of HTML elements

Time:2019-11-6

Copy code

The code is as follows:

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

<input type=”text” />

</form>

</body>

<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: https://www.bilibili.com/video/BV1tJ411r7EC?p=15 Baidu cloud installation package is attached to the installation tutorial: https://blog.csdn.net/qq_ 40774525/article/details/79919057 Oracle Baidu cloud installation package: https://pan.baidu.com/s/1qVWwCUR37j2JxEecYbe5HQ Extraction code: 5abz After the Oracle service above is installed, open the client of SQL developer and the […]