0

using js and html I want to click on a button for example 'login' and when I click it I want it to redirect me to an another page. How can I do that?

John
  • 25
  • 1
  • 3
  • 1
    hi, check here. https://stackoverflow.com/q/503093/14032355 – ikhvjs Jun 08 '21 at 15:09
  • 1
    Does this answer your question? [How do I redirect to another webpage?](https://stackoverflow.com/questions/503093/how-do-i-redirect-to-another-webpage) – deepakchethan Jun 08 '21 at 15:11

1 Answers1

0
  • You can wrap the button with the <a> tag in case you want to use normal HTML
  • Otherwise, you can use `window.location.href = 'redirect page`` for navigate with JavaScript
Heretic Monkey
  • 11,687
  • 7
  • 53
  • 122
Khanh Chau
  • 121
  • 1