html button as link

104

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

Comments

Submit
0 Comments