CSS/HTML-Button auf Unterseite verweisen?
Hey,
ich würde gerne eine Unterseite per Button-Klick öffnen. Wie kann ich das machen?
<body>
<button class="Regelwerk" OnClick="location.href="regelwerk.html>REGELWERK</button> <br>
<button class="FAQ" OnClick="location.href='http://www.google.de'">FAQ</button> <br>
<button class="Beta" OnClick="location.href='http://www.google.de'">BETA</button> <br>
<button class="Updates" OnClick="location.href='http://www.google.de'">UPDATES</button> <br>
<button class="Impressum" OnClick="location.href='http://www.google.de'">IMPRESSUM</button>
</body>
1 Antwort
![](https://images.gutefrage.net/media/default/user/9_nmmslarge.png?v=1551279448000)
Verwende doch einfach Links dafür:
https://wiki.selfhtml.org/wiki/HTML/Textauszeichnung/a
Per CSS kannst Du sie dann auch wie Buttons aussehen lassen:
https://stackoverflow.com/questions/710089/how-do-i-make-an-html-link-look-like-a-button