0

This is my login page called login.html and i want to open register.html page in the same tab when pressing register button

This is the page(regeister.html) i want to navigate to when pressing register button in login.html page

Tumisang Pita
  • 11
  • 1
  • 1
  • 3
  • 1
    Possible duplicate of [Open URL in same window and in same tab](https://stackoverflow.com/questions/8454510/open-url-in-same-window-and-in-same-tab) – a stone arachnid Oct 08 '18 at 00:10

2 Answers2

2

You can use hyperlink to link once page to another

<a href="register.htm">Button</a>

if you using a <form> you can use form action you can try this.

<form action="http://www.register.htm">
<button type=submit>Register</button>
</form>

or onclick method

<input type="button" name="b1" value="Register"
 onclick="location.href='register.htm'">
Poorna Senani Gamage
  • 1,246
  • 2
  • 19
  • 30
0

you can use this too

   <button>
    <a type="button" href="register.html"> register</a>
   </button>