| View previous topic :: View next topic |
|
| Author |
Message |
|
Adam1993 Moderator


Posts: 3953 Forum Points: 14754 Transfer Points
› Items
› Portfolio
Comments: Add |
Show
|
Posted: Tue Sep 04, 2007 5:17 pm Post subject: Password |
|
|
Whats the HTML coding for a password prompt on a page?
Thanks In Advance,
Adam
|
|
| Back to top |
|
 |
|
.Jordan. Forum Mad

Posts: 6437 Forum Points: 1501 Transfer Points
› Items
› Portfolio
Comments: Add |
Show
|
Posted: Tue Sep 04, 2007 7:27 pm Post subject: |
|
|
Its javascript, but it works;
| Code: | | <HEAD><SCRIPT language="JavaScript"><!--hidevar password;var pass1="PASSWORD GOES HERE";password=prompt('TEXT ON P-UP',' ');if (password==pass1)alert('TEXT IF CORRECT');else { window.location="URL OF PAGE THAT IT GOES TO IF THEY ANSWERED WRONG"; }//--></SCRIPT></HEAD> |
|
|
| Back to top |
|
 |
|
jimi Forum Maniac


Posts: 2513 Transfer Points
› Items
› Portfolio
Comments: Add |
Show
|
Posted: Tue Sep 04, 2007 8:21 pm Post subject: |
|
|
| i wouldnt use it to secure anything theres a thousand and 1 ways to get round that try using php or htacess/htpassword if you have acess to ftp
|
|
| Back to top |
|
 |
|