【发布时间】:2021-12-24 09:53:45
【问题描述】:
所以,我希望能够在文本字段中按 Enter 并被重定向到另一个页面。有谁知道我该怎么做?
<input class="center" type="text" style="font-size:20px; border:none; outline:none; " size="105" type="text" placeholder="Shrek" name="search" >
【问题讨论】:
-
这能回答你的问题吗? Detect the Enter key in a text input field
标签: javascript html