Default html form focus without JavaScript

后端 未结 5 2158
傲寒
傲寒 2020-12-01 03:48

Is it possible to set the default input focus on an HTML form without using JavaScript, for example:


  
Input 1:
5条回答
  •  既然无缘
    2020-12-01 04:46

    This is not possible without some form of scripting. Even Google's home page requires Javascript to focus the search field.

提交回复
热议问题