Jak utworzyć przycisk w HTML
<button onclick="window.location.href='/page2'">Continue</button>
STIFLER
<button onclick="window.location.href='/page2'">Continue</button>
<script>
function myFunction() {
alert("ALERT");
}
</script>
<button onclick="myFunction">Click</button>
<button></button>
<!-- example -->
<button id="mybutton">A BUtton</button>
<!-- add CSS to align(etc.) and resize them -->
<style>
#mybutton {
margin-top: 50%;
margin-left: 50%;
width: 250px;
}
</style>
<!-- here, I centered my button -->
<form action="/button-type">
<button type="button" onclick="alert('This button does nothing.')">Click me for no reason!</button><br><br>
<label for="name">Name</label><br>
<input name="name"><br><br>
<button type="reset">Reset the form!</button><br><br>
<button type="submit">Submit (disabled)</button>
</form>
<a herf="blah file/page2"><button>Your Text Here</button></a>