Skip to content

Instantly share code, notes, and snippets.

@lanmaster53
Created February 6, 2018 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lanmaster53/ff74f568c0e908dfa190c0aa60dd93e3 to your computer and use it in GitHub Desktop.
Save lanmaster53/ff74f568c0e908dfa190c0aa60dd93e3 to your computer and use it in GitHub Desktop.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Autocomplete Password Test</title>
<script>
function toggleType() {
var el = document.getElementById("pw");
if (el.type =="password") {
el.type = "text";
} else {
el.type = "password";
}
}
</script>
</head>
<body>
<form action="https://lanmaster53.com">
Username:<br>
<input type="text" name="username" value=""><br>
Password:<br>
<input id="pw" type="password" name="lastname" value="">
<input type="button" value="Toggle" onclick="toggleType();"><br><br>
<input type="submit" value="Submit">
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment