Search
 
SCRIPT & CODE EXAMPLE
 

HTML

href on a button

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

button as href

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

javascript button href html

<button onclick="window.location='http://www.example.com';">Visit Page Now</button>
Comment

button with href

onClick={() => {window.location.href="https://www.golfballs.com/"}}
Comment

html button with href

<form method="get" action="/page2">
    <button type="submit">Continue</button>
</form>
Comment

button onclick href

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />

<button class="btn btn-success">¿Soy un botón o un enlace?</button>
<a href="www.google.com" class="btn btn-success">¿Soy un botón o un enlace?</a>
 EjecutarEsconder resultados
Comment

PREVIOUS NEXT
Code Example
Html :: holy grail with flexbox 
Html :: v-progress-circular 
Html :: html datetime-local format dd/mm/yyyy 
Html :: copy right html footer 
Html :: how to put icons in select 
Html :: fa icon person 
Html :: Div and span 
Html :: where we can store image in django project to so that t can work in html file 
Html :: bootstrap date search 
Html :: jsonplaceholder with delay 
Html :: email 
Html :: how to add links in html 
Html :: links html 
Html :: responsive flexbox navbar 
Html :: django python variable in html 
Html :: ngfor display in html table 
Html :: how to use js in html 
Html :: google map for html 
Html :: uncaught error: bootstrap 
Html :: how to underline text in html 
Html :: use svg as favicon react 
Html :: phone input html 
Html :: div shift right 
Html :: html images 
Html :: html basic website 
Html :: git list deleted files 
Html :: link mui 
Html :: react native force light mode 
Html :: vue button prevent double click 
Html :: bootstrap tablist 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =