Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <p>Inserisci la Password per accedere</p>
- <p><input type="text" id="idbello"></p>
- <p><input type="password" id="password"></p>
- <button id="verifica">Invia dati</button>
- <script type="text/javascript">
- document.getElementById("verifica").onclick = function () {
- var id = document.getElementById("idbello").value;
- var idgiusto = "VIILegione";
- var parola = document.getElementById("password").value;
- var parolagiusta = "123";
- if (parola == parolagiusta && id == idgiusto) {
- alert("Ok");
- } else {
- alert("rip");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement