- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to disable Google Chrome autofill option?
To disable autofill option specially on Google Chrome, use the autocomplete attribute and set it to −
autocomplete="chrome-off"
We will see an HTML form and for the fields we will disable the autofill, first for the form −
<form action="/action_page.php" method="get" autocomplete="chrome-off"> <!- - - - -> </form>
Now, disable the autofill for each input type −
<input type="text" name="firstname" placeholder="Enter First Name" autocomplete="chrome-off"> <input type="text" name="lastname" placeholder="Enter Last Name" autocomplete="chrome-off"> <input type="submit" value="SUBMIT" class="btn" autocomplete="chrome-off">
Example
Let us see an example −
<!DOCTYPE html> <html> <style> input { width: 315px; display: block; margin: 1rem auto; padding: 8px; border-radius: 20px; outline: none; } ::placeholder { color: #000; } .btn { background: black; border: none; height: 2rem; border-radius: 20px; width: 330px; display: block; color: #fff; outline: none; cursor: pointer; margin: 1rem auto; } </style> <body> <h1>Details</h1> <form action="/action_page.php" method="get" autocomplete="chrome-off"> <input type="text" name="firstname" placeholder="Enter First Name" autocomplete="chrome-off"> <input type="text" name="lastname" placeholder="Enter Last Name" autocomplete="chrome-off"> <input type="submit" value="SUBMIT" class="btn" autocomplete="chrome-off"> </form> </body> </html>
Output

Enter some values above.

The above FirstName and LastName values won’t be visible the next time you fill the form, since we disabled autofill on Google Chrome above.
- Related Articles
- How to Install Google Chrome in Ubuntu
- How to use Google Chrome Virus Scanner?
- How to set Google Chrome in WebDriver?
- How to Block Pop-Ups on Google Chrome?
- How to Clear the JavaScript Console in Google Chrome
- How to Disable images in Selenium Google ChromeDriver?
- How to Automatically Generate Random Secure Passwords in Google Chrome?
- Ok google a google voice search on chrome beta
- Coolnovo a web browser similar to google chrome
- Now, Google+VMware Provide Services to Chrome OS
- Top Keyboard Shortcuts for Google Chrome
- How did Google Chrome Manage to Cross 2 Billion Active Installs?
- How do you launch the JavaScript debugger in Google Chrome?
- Disable images in Selenium Google ChromeDriver.
- HTML5 Canvas & z-index issue in Google Chrome

Advertisements