answersLogoWhite

0

Although this password script would get you hacked in the blink of an eye, you could use

<html>

<head>

<script type="text/javascript">

function PassCheck()

{

var pass=12345

var check=prompt("Enter Pass","");

if (pass==check)

{

document.write("Correct!")

}

else

{

document.write("Incorrect!")

}

}

</script>

</head>

<body>

<button type="button" onclick="PassCheck()">Enter Password</button>

</body>

</html>

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you write a password script using JavaScript in PHP with a form?

This question is too broad, be more specific.


What is logic behind Remember Password in javaScript?

It saves time and also user doesn't have to write the password somewhere or memorize it. Though for security reasons it is a bad practice. Putting password on a browser's password list or storing it inside local computer using cookies is a bad idea. Security is jeopardized if other users or hackers gain access to those files.


How do you write a javascript?

go to notepad and write Javascript code and save it as .js and then import it into a page with a src tag


Validating a form within Ajax tabs with PHP?

If you know jquery it will help to write javascript easily to accomplish, what is needed. There should not be any difficulties because the form is inside a ajax tab. if you will write on $(document).ready(function(){ // here all validation should work })


How do you write HTML codes and javascript events together in your HTML kit?

You need to write the HTML code in the tag format. If you want to write JavaScript put it in &lt;script&gt; tag.


How to use Javascript to write to the local filesystem?

For security reasons, regular JavaScript scripts in web pages are not allowed to write to the local file system.


Write a javascript program to input user name and password?

Just use the &lt;input type="text"&gt; and &lt;input type="password"&gt;. You can also use the prompt() function, but... I'd recommend against it, since it doesn't get censored and is also just plain annoying.


How do you write a password using alphanumeric character?

By using any letters A to Z and any numbers 0 to 9


What languages can you write a Google Apps script on?

JavaScript


How do you write a password using only alphanumeric characters?

By using any letters A to Z and any numbers 0 to 9


Where do you write javascript?

JavaScript is written in an HTML document. You start it with this tag:and end it with:


What are good Java script codes?

depending on the intention of the javascript codes you wish to write. there is much you can do with javascript but the only way to find out what "good Java script codes" are is to explore what you want the Javascript to do on the page.