florida
11-25-2002, 09:01 AM
I have a page when I click on a link it works for me but it gets the document for my link from a directory that not everyone has permissions to see. So I can limit who sees this document. Because of limited permissions on this
document the link shows an error message box saying: "Netscape is unable to find the file or directory named /mydirectory/here/mydoc.doc" to all people who do not have permissions to view the document.
Is there anyway to put something in my html so I can put my own web page output message saying "You do not have permissions to view this document" after someone (without proper permissions) clicks on this link???
Here is an attempt but this gives me same message all the time.
<script>
window.onerror = errorHandler;
function errorHandler()
{
alert ('You do not have permissions to view this document');
return false;
}
</script>
</head>
<body>
<A HREF="/mydirectory/here/mydoc.doc"" onclick="errorHandler()">test=</A>
document the link shows an error message box saying: "Netscape is unable to find the file or directory named /mydirectory/here/mydoc.doc" to all people who do not have permissions to view the document.
Is there anyway to put something in my html so I can put my own web page output message saying "You do not have permissions to view this document" after someone (without proper permissions) clicks on this link???
Here is an attempt but this gives me same message all the time.
<script>
window.onerror = errorHandler;
function errorHandler()
{
alert ('You do not have permissions to view this document');
return false;
}
</script>
</head>
<body>
<A HREF="/mydirectory/here/mydoc.doc"" onclick="errorHandler()">test=</A>