Frontpage ... hmmm. Sorry I don not use Frontpage. I prefer handwriting the code or using Dreamweaver. :smile:
But, I think this is what you want:
The Hyperlink:
For more information about the code above, go here:
http://sharkysoft.com/tutorials/jsa/content/009.html
Have a fun and computing day,
Grove
But, I think this is what you want:
Code:
<html>
<head>
<script>
function load_private_page
( // Parameters:
prefix, // non-secret portion of
// URL before the password
postfix // non-secret portion of
// URL after the password
)
{
// Get secret portion of URL from user:
password = prompt ("Access to this page is restricted. " +
"Please enter access code:", '');
// Construct entire secret URL using
// secret and non-secret portions:
secret_URL = prefix + password + postfix;
// Load the secret document:
document . location . href = secret_URL;
}
</script>
</head>
<body>
.
.
.
(main document body, including links to public and private pages)
.
.
.
</body>
</html>
Code:
<a href="javascript: load_private_page ('http://mysite.com/', '.html');">
private page
</a>
http://sharkysoft.com/tutorials/jsa/content/009.html
Have a fun and computing day,
Grove