Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <head>
- <script>
- function ----() {
- var username = prompt("Please enter your username.");
- if (username.toLowerCase() == "-----"){
- var password = prompt("Please enter your password.");
- if (password.toLowerCase() == "-----"){
- window.open('http://example.com',"_self")
- }
- else{
- alert('Incorrect password. Please try again.')
- }
- }
- else{
- alert('Incorrect username. Please try again.')
- }
- }
- </script>
- </head>
- <body>
- <p><a onclick="----()" href="javascript:void(0);">------</a></p>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement