I need to avoid that chrome fills some fields with a login data stored on the browser, I tried adding autocomplete="off"
and autocomplete="unknown-autocomplete-value"
but chrome its still filling these fields, any other way without using javascript?
Asked
Active
Viewed 127 times
1

a_crl3
- 51
- 1
- 1
- 2
1 Answers
0
can you post your code also because in my case its work. Compare between First Name and Last Name by running code snippet
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<form action="form.php" target="_blank" method="post">
<label>First Name </label><input type="text" name="FirstName" autocomplete="off"><br><br>
<label>Last Name </label><input type="text" name="LastName"><br><br>
<label>Password </label><input type="password" name="password"><br><br>
<label>Male </label><input type="radio" name="gender"><br>
<label>Female </label><input type="radio" name="gender"><br>
<label>Others </label><input type="radio" name="gender"><br>
<label for=""></label>
<input type="submit" value="Submit">
</form>
</body>
</html>

satyam jha
- 23
- 6
-
try to use ```autocomplete="off" ``` in ``` – satyam jha Feb 25 '21 at 19:05