I have a text box where the user inputs a value then js adds the directory and .htm extension then opens a page.
If the user inputs an invalid pagename, the standard MS "Page not found" message appears. Is there a way to jump to a customized error page? Is there an "onError" command?
...
<form name="userpage">
<p><Strong>Personal Report Pages Login:</Strong><BR>
<input type="text" size="6" name="PWP">
<input type="button" name="submit" value="Login" onclick="pwpuser()">
<script language="JavaScript">
function pwpuser()
{
var PWP;
PWP = document.userpage.PWP.value
var location=("PWPAGES/" + PWP + ".htm"
this.location.href=location;
}
</script>
... [sig][/sig]
If the user inputs an invalid pagename, the standard MS "Page not found" message appears. Is there a way to jump to a customized error page? Is there an "onError" command?
...
<form name="userpage">
<p><Strong>Personal Report Pages Login:</Strong><BR>
<input type="text" size="6" name="PWP">
<input type="button" name="submit" value="Login" onclick="pwpuser()">
<script language="JavaScript">
function pwpuser()
{
var PWP;
PWP = document.userpage.PWP.value
var location=("PWPAGES/" + PWP + ".htm"
this.location.href=location;
}
</script>
... [sig][/sig]