Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- const form = document.querySelector("#iddetonform");
- form.addEventListener("submit", () => {
- if (!localStorage.key("attempt"))
- localStorage.setItem("attempt", 1);
- else if (localStorage.getItem("attempt") === 3) {
- const a= document.createElement("p");
- a.innerText = "Mot de passe oublié ?"
- a.setAttribute("href", "http://tapagedemotdepasseoublié");
- form.appendChild(a);
- }
- else
- localStorage.setItem("attempt", localStorage.getItem("attempt")+1);
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement