button as href

45

href on a button -

<button onclick="window.location.href='/page2'">Continue</button>

button as href -

<button onclick="location.href='http://www.example.com'" type="button">
         www.example.com</button>

html button as link -

<button class="btn btn-success" onclick="location.href='http://google.com';"> Google</button>
#open link from button

href in button -

<input type="button" onclick="location.href='https://google.com';" value="Go to Google" />

button href -

<a href="https://google.com" class="button">Go to Google</a> //*button link *//

Comments

Submit
0 Comments