Answers for "button with anchor tag html"

20

href on a button

<button onclick="window.location.href='/page2'">Continue</button>
Posted by: Guest on June-08-2020
4

button tag with a tag

<a href='https://www.freecodecamp.org/'><button>Link To freeCodeCamp</button></a>
Posted by: Guest on April-01-2021
0

button as href

<button onclick="location.href='http://www.example.com'" type="button">
         www.example.com</button>
Posted by: Guest on October-20-2020
2

make anchor tag as button

.button {
    display: block;
    width: 115px;
    height: 25px;
    background: #4E9CAF;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    line-height: 25px;
    cursor: pointer;
}
Posted by: Guest on May-03-2021

Browse Popular Code Answers by Language