Contacts form button handler
This commit is contained in:
@@ -5,6 +5,16 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Контакти » Веб-програмування ПР№1</title>
|
<title>Контакти » Веб-програмування ПР№1</title>
|
||||||
<link rel="stylesheet" href="/style.css">
|
<link rel="stylesheet" href="/style.css">
|
||||||
|
|
||||||
|
<script>
|
||||||
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
|
const form = document.getElementById("contact-us-form");
|
||||||
|
form.addEventListener("submit", ev => {
|
||||||
|
alert("Ця кнопка нічого не робить, це статичний вебсайт :)");
|
||||||
|
ev.preventDefault();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- Navbar -->
|
<!-- Navbar -->
|
||||||
|
|||||||
Reference in New Issue
Block a user