home *** CD-ROM | disk | FTP | other *** search
/ PC User 2004 November / PCU1104CD1.iso / magstuff / webauth / files / code.txt
Encoding:
Text File  |  2004-08-25  |  476 b   |  22 lines

  1. <html>
  2. <head>
  3. <title>Page with link to secret page</title>
  4. <script language="JavaScript">
  5. <!-- 
  6. function visitSecretPage() {
  7. var password = ''
  8. password=prompt('Type the password to view the secret page: ','Type password here');
  9. if (password != null) {
  10. location.href= password + ".htm";
  11. }
  12. }
  13. // -->
  14. </script>
  15. </head>
  16. <body>
  17. Click the image and type the password to visit the secret page<p>
  18. <img src="photo.jpg" onClick="visitSecretPage()">
  19. </body>
  20. </html>
  21.  
  22.