“Adicione o link atrás de um botão em html” Respostas de código

Link do botão HTML

<button><a href='https://google.com' alt='Broken Link'>This is a button</a></button>
Arab Fire Shaman

BASTON HTML HREF

<!-- if you are on Window : --> 
<button onclick="window.location.href='page2.html'">
  Button
</button>

<!-- if you are on linux or macOS : -->
<button onclick="location.href='page2.html'">
  Button
</button>
Pr.Gaultier

Adicione o link atrás de um botão em html

<!DOCTYPE html>
<html>
   <head>
      <title>Title of the document</title>
   </head>
   <body>
      <form>
         <input type="button" onclick="window.location.href = 'https://www.w3docs.com';" value="w3docs"/>
      </form>
   </body>
</html>
Aggressive Anaconda

Respostas semelhantes a “Adicione o link atrás de um botão em html”

Perguntas semelhantes a “Adicione o link atrás de um botão em html”

Mais respostas relacionadas para “Adicione o link atrás de um botão em html” em HTML

Procure respostas de código populares por idioma

Procurar outros idiomas de código