Search
 
SCRIPT & CODE EXAMPLE
 

HTML

href on a button

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

onclick href

onclick="location.href='http://www.hyperlinkcode.com/button-links.php'"
Comment

html button click url

# Wrap whole button in a 'a' tag.
 <a href="https://google.com" class="button"><button class="pixel">Button text</button></a>
Comment

javascript button href html

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

how to use onclick in href tag

<a href="http://www.google.com" onclick="return myFunction();">Link</a>


function myFunction() {
    document.getElementById(".myDiv").style.flexGrow = "5"; 
}
Comment

how to use onclick in href tag

$("#myHref").on('click', function() {
    document.getElementById(".myDiv").style.flexGrow = "5";
     window.location = "http://www.google.com";

});`
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 :: disable autoplay in html iframe 
Html :: html pi 
Html :: how to use google drive image in html 
Html :: free books 
Html :: how to open a website inside a website 
Html :: make a basic html page 
Html :: href rel 
Html :: table border color in html 
Html :: html implement button send email 
Html :: meta description 
Html :: bootstrap 4 vertical align td 
Html :: ordered list with roman numerals html 
Html :: syntax for ngfor 
Html :: How can you make an email link 
Html :: footer ionic 
Html :: how to add a table in html 
Html :: textarea angular onfocus 
Html :: ion-button outline 
Html :: html void 
Html :: how to put something on the bottom right corner in html 
Html :: bootstrap navbar-inverse not working 
Html :: facebook icon html 
Html :: meter balise 
Html :: vue get element by id 
Html :: auto year in html 
Html :: details balise 
Html :: test image as base 64 string 
Html :: how to set a gif as a background image of a page 
Html :: robots txt disallow all 
Html :: disable autocomplete 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =