ich habe der code geschriben wie du hast , aber bekomme keine verenderung…
<script>
function setAriaCurrentPage(c,i,f){
f=http://localhost/Beispiel-1.php;
c=document.querySelectorAll("a[href]");
for(i=0; i<c.length; i++){
if(c[i].getAttribute("href") == f){
c[i].setAttribute("aria-current","page");
c[i].setAttribute("tabindex","0");
c[i].removeAttribute("href");
}
}
}
</script>