Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
mit JV geht sowas, aber unsicher, seeehhr unsicherMit Javascript geht es aber definitiv nicht!
var name = prompt("Bitte geben sie ihren Accountnamen ein:");
var passwort = prompt("Bitte geben sie ihr Passwort ein:");
if(name == 'blabla' && passwort == 'blub')
{
location.href = 'geheim.htm';
}
var name = prompt("Bitte geben sie ihren Accountnamen ein:");
var passwort = prompt("Bitte geben sie ihr Passwort ein:");
if(name == 'blabla' && passwort == 'blub')
{
location.href = passwort+'_'+name+'.htm';
}
<form action="verarbeiten.php" method="post">
Name: <input type="text" name="name" />
Passwort: <input type="password" name="passwort" />
<input type="submit" name="login" value="Login" />
</form>
<script type="text/javascript">
var passwort = prompt("Bitte geben sie ihr Passwort ein:");
if(passwort == 'blabla' )
{
location.href = 'seite.htm';
}
else
{
alert("Falsches Passwort")
}
</script>
<html>
<body>
<title>Login</title>
<script type="text/javascript" src="account.js"></script>
</body>
</html>
<script type="text/javascript">
<!--
var passwort = prompt("Bitte geben sie ihr Passwort ein:");
if(passwort == 'testpasswort' )
{
location.href = 'seite.htm';
}
else
{
alert("Falsches Passwort")
}
//-->
</script>