|
I think this is probably a homework exercise because in the real world there is no way you should be using javascript to count login attempts because it can be very easily bypassed.
If you want to count login attempts properly, then you should be doing this server side with a server side language like PHP etc.
|