运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <body> <h2>Autocomplete on/off</h2> <form action="/action_page.php"> First name: <input type="text" name="fname" autocomplete="off"><br> Last name: <input type="text" name="lname" autocomplete="on"><br> <input type="submit"> </form> <p>Fill in and submit the form, then reload the page to see how autocomplete works.</p> <p>Notice that autocomplete is "on" for the last name field, but "off" for the first name field.</p> </body> </html>