Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">

<title></title>
<title>HTML5-Reset Starter Page</title>
<meta name="description" content="" />
<meta name="author" content="" />
<meta name="copyright" content="" />

<link rel="stylesheet" href="assets/css/styles.css" />
<link rel="stylesheet" href="assets/css/styles.css"/>

</head>

Expand Down Expand Up @@ -81,7 +81,7 @@ <h2>Article Subhead</h2>
<input type="checkbox" id="terms" required="required" />
<label for="terms">I have read and accept the <a href="#" target="_blank">terms and conditions</a>.</label>

<input type="submit" value="Submit">
<input type="submit" value="Submit" id="submit-button" onclick="Submit()">
</form>

</article>
Expand All @@ -103,6 +103,11 @@ <h2>Sidebar Content</h2>
</footer>

</div>

<script>
document.getElementById("submit-button").addEventListener("click", function(event) {
event.preventDefault(); // prevent real form submission
alert("The Form Submitted Successfully!");
});
</script>
</body>
</html>