If the ASP.NET page the user was visiting had another Button on the page, hitting Enter in the search query box submitted the form but fired the Click event of the Button on the page, and not the search buttons. However, if you want to redirect the page when an event occurs, such as when the user click on a button element, you can just use the window.location.href = "page_url", which produce the similar effect when someone click a link to navigates to other page.. Although, i can get it done using hyperlink. javascript by ⦠After that when the user clicks the Form Button, It will redirect that user to another page. This page shows how to make HTML button links with onclick and href using the