How to redirect a html page to two other html pages using two buttons?

button, click, html, redirect

Solution

YOU COULD DO something like this

<input type="button" onclick="window.location = 'where-you-want-to-go';">
<input type="button" onclick="window.location = 'where-you-want-to-go';">

Problem

I can connect to another html page by using the following code by using a button click. ``` <form action="where-you-want-to-go"><input type="submit"></form> ``` but I have a problem. When there are two buttons on the page how can I redirect them to two different pages by using this code? Or is there any other way to do that?

Original source

Related problems