Can somebody help me with the below :
I am trying to build a site with many pages using Google's Appscript. But I am stuck as to how can I redirect to those pages using button. Obviously it would be a Javascript code. I am trying to use the addEventListener
function.
<body>
<div class='container'>
<h1>Welcome to the Ticket Tracker!</h1>
<input id='my_input' placeholder="Recipient's Email"><br>
<input id='my_input_fname' placeholder="First Name"><br>
<input id='my_input_fname' placeholder="Last Name"><br>
<button id='my_button_new_ticket'>NEW TICKET</button>
<button id='my_button_update_ticket'>SEARCH TICKET</button>
<p id='my_paragraph'></p>
<script>
document.getElementById('my_button_new_ticket').addEventListener('click', _ => {
window.location.href='index.html'
</script>
</div>