amnezija Posted September 3, 2007 Report Share Posted September 3, 2007 (edited) 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 September 3, 2007 by amnezija Link to comment Share on other sites More sharing options...
kRi Posted September 3, 2007 Report Share Posted September 3, 2007 Emm..a kāds tam sakars ar CS? Derētu uztaisīt sadaļu jaunajiem web`istiem. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now