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 :: input type phone number 
Html :: redirect html 
Html :: question mark html 
Html :: coc allow comments in json 
Html :: sort table in html 
Html :: how to set a gif as a background image of a page 
Html :: button functions html 
Html :: tailwind hover color 
Html :: onclick nothing 
Html :: vuetify tooltip 
Html :: how to enable a button when a checkbox is selected in javascript 
Html :: disable autocomplete 
Html :: how to change tab icon in html 
Html :: vue cursor focus 
Html :: css heading background line 
Html :: Disable right click on your webpage 
Html :: bootstrap 5 color picker 
Html :: html lang 
Html :: html entity at sign 
Html :: html charset 
Html :: how to embed a website in another website 
Html :: posting with forms html 
Html :: DISPLAY HTML input["datetime-local"] VALUE FROM MYSQL date_time 
Html :: internet and intranet 
Html :: form action without redirect 
Html :: tailwind css input field 
Html :: bootstrap range input 
Html :: phone input code 
Html :: gap between grid layout bootstrap 
Html :: html color code for green 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =