Skip to content

Instantly share code, notes, and snippets.

@wnas
Created August 16, 2017 06:52
Show Gist options
  • Save wnas/024111ca95bcec2841f642c1ddbfa36f to your computer and use it in GitHub Desktop.
Save wnas/024111ca95bcec2841f642c1ddbfa36f to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/jufimer
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
body {
font-family: helvetica, sans-serif;
max-width: 400px;
margin: 0 auto;
}
body,button {
font-size: 1em;
}
button {
padding: 1em;
display: block;
width: 100%
}
</style>
</head>
<body>
<form action="https://wnas.nl">
<p>this button will take you to wnas.nl as that is the action of the form</p>
<button type="submit">wnas.nl</button>
<p>the last button however has a formaction attribute which points it to wnas.nl/about.</p>
<button formaction="https://wnas.nl/about">wnas.nl/about</button>
</form>
<script id="jsbin-source-css" type="text/css">body {
font-family: helvetica, sans-serif;
max-width: 400px;
margin: 0 auto;
}
body,button {
font-size: 1em;
}
button {
padding: 1em;
display: block;
width: 100%
}
</script>
</body>
</html>
body {
font-family: helvetica, sans-serif;
max-width: 400px;
margin: 0 auto;
}
body,button {
font-size: 1em;
}
button {
padding: 1em;
display: block;
width: 100%
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment