For example : after showing successful login , you will be redirected to home page.
Using button as link using javascript inside HTML code:
Use one line code to redirect :
Note: The window.location object can be used to get the current page address (URL) and to redirect the browser to a new page.