입력 필드의 자동 완성을 비활성화하려면 코드는 다음과 같습니다 -
예시
<!DOCTYPE html>
<html>
<head>
<style>
input{
font-size: 18px;
padding: 10px;
margin: 10px;
border:1px solid grey;
}
</style>
</head>
<body>
<h1>Autocomplete on/off Example</h1>
<form>
First name: <input type="text" name="firstName" autocomplete="off"><br>
Last name: <input type="text" name="lastName" autocomplete="on"><br>
<input type="submit">
</form>
<h2>Type in the above fields and refresh page to see autocomplete at work</h2>
</body>
</html> 출력
위의 코드는 다음과 같은 출력을 생성합니다 -

양식을 한 번 제출한 후 위의 필드에 무언가를 입력할 때 -
