I used the demo version of powermapper tools online to scan my pages and it presents the following issue to a page I'm about to explain.
Basically, a page that I have is a fallback page for clients that want to view my website and that don't have javascript enabled.
Such links are meant to perform intended actions only when javascript is enabled. I'll explain in code for those that are confused:
<a ID="alink" href="http://www.example.com/javascript-error">Click</a>
<script>
function dosomething(){alert("The link is processing. This is intended");}
document.getElementById("alink").addEventListener("click",dosomething);
</script>
Because javascript error pages are something people don't want, it wouldn't make sense to make a ton of links to it or to add a sitemap, or to even let people search for the page. So I'm trying to figure out a solution without receiving the WCAG error explained above.
I don't think it would be wise to give an HTTP status code other than 200 to those pages because they are pages and google might give me a little penalty for doing so.
Anyone have ideas on how I can fix this?