Added 'action' to form tag

This commit is contained in:
2023-06-06 10:11:29 -05:00
parent ac25e58d84
commit 8c296654a7

View File

@@ -7,7 +7,7 @@
<body> <body>
<div id="root"> <div id="root">
<h1>Link Shortener</h1> <h1>Link Shortener</h1>
<form id="form"> <form id="form" action="result.js">
<label for="url">URL:</label><span class="mandatory">*</span> <label for="url">URL:</label><span class="mandatory">*</span>
<input type="text" name="url" id="URL" value="example.com" required><br><br> <input type="text" name="url" id="URL" value="example.com" required><br><br>
@@ -26,4 +26,4 @@
<script src="index.js"></script> <script src="index.js"></script>
</div> </div>
</body> </body>
</html> </html>