codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  help password Js  naturalmedia at 11:27 on Wednesday, October 22, 2003
 

Hi guy are you doing?
we have just a little problem, now will be show you .
i find a protection password js but i try to modify and doesn't Work ,
the only problem is if you lave the password camp blank you go in the protected page.
Someone now how i can stop user or ask again the password ??
this is the js to edit :



<script language="JavaScript">

function passWord() {

var testV = 1;

var pass1 = prompt('Inserisci la Password');

while (testV < 3) {

if (!pass1) history.go(index.htm)

if (pass1.toLowerCase() == "luca") {

alert('La tua password è esatta');

break;

}

testV+=1;

var pass1 = prompt('Sbagliato! Puoi riprovare.','Password');

}

if (pass1.toLowerCase()!="altro" & testV ==2) history.go(dvd/nx.htm);

return " ";

}

document.write(passWord());

</script>








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Develop website with 3 tier architecture
•  Re: TaylorMade R11s Fairway Wood
•  Re:
•  What do you mean by ASP.NET MVC Execution Process?
•  Re:
•  Re:
•  one java progarm handle two socket connection
•  How to navigate database page?
•  "Fitting Wedges


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2012