Jump to content
GIGN Forum

Recommended Posts

Kā, lai šim JS skriptam uztaisa tā, kad pareizi ievada paroli tad aizziet uz noteiktu linku nu adresi un, kad ievada nepareizu paroli tad ar atver konkrētu PHP vai HTML failu?

<script language="JavaScript">

var psw=prompt('Ievadi paroli','');

var istaparole='*******';

if (psw==istaparole)

{

alert('Parole ir pareiza')

}

else

{

alert('Parole nav pareiza!')

}

</script>

Edited by amnezija
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...