Answers for "button a"

1

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>
Posted by: Guest on October-25-2020
1

button

.button {
  position: absolute;
  left: 100px;
  top: 150px;
}
Posted by: Guest on May-03-2021
2

html button with href

<form method="get" action="/page2">
    <button type="submit">Continue</button>
</form>
Posted by: Guest on June-03-2020
0

button

<a href="#" class="myButton">Search</a>

.myButton {
	background:linear-gradient(to bottom, #8ca0c2 5%, #476e9e 100%);
	background-color:#8ca0c2;
	border-radius:13px;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family:Times New Roman;
	font-size:16px;
	font-weight:bold;
	padding:10px 15px;
	text-decoration:none;
	&:hover {
	background:linear-gradient(to bottom, #476e9e 5%, #8ca0c2 100%);
	background-color:#476e9e;
}
 &:active {
	position:relative;
	top:1px;
}
 }
Posted by: Guest on May-20-2021
0

button

const button = document.querySelector('main button');
const output = document.querySelector('main pre');

button.addEventListener('click', function (e) {
    console.log('button is clicked');
    output.innerHTML += 'button is clicked<br>';
});
Posted by: Guest on June-14-2021
0

button

<androidx.appcompat.widget.AppCompatButton
Posted by: Guest on December-27-2020

Browse Popular Code Answers by Language