Submit button added to form and script started

This commit is contained in:
eoghan.conlon 2023-08-08 18:13:11 +01:00
parent 0dcdfdf628
commit c0d3d6392b

View file

@ -14,11 +14,22 @@
<option value="pass">Password</option> <option value="pass">Password</option>
</select> <br /> </select> <br />
<label for="value">Value</label> <label for="value">Value</label>
<input type="text" id="value" name="value" /> <input type="text" id="value" name="value" /> <br />
<input type="submit" value="submit" />
</form> </form>
<footer> <footer>
UL Computer Society 2023-<span id="year">2023</span> UL Computer Society 2023-<span id="year">2023</span>
</footer> </footer>
<script>
const formEl = document.getElementById('recovery');
formEl.addEventListener('submit', (listener) => formHandler(listener));
function formHandler(listener){
alert('Not implemented yet');
}
</script>
</body> </body>
<script> <script>
document.getElementById('year').textContent = new Date().getFullYear().toString() document.getElementById('year').textContent = new Date().getFullYear().toString()