Answers for "change page with js"

7

html button redirect

For button redirection you can use below code:

Using these two type <button> and <input> tag:

<a href="http://www.google.com/">
   <button>Visit Google</button>
</a>
  
or:

<a href="http://www.google.com/">
   <input type="button" value="Visit Google" />
</a>
  
<!--
I hope it will help you.
Namaste
-->
Posted by: Guest on June-14-2020
0

change page from js

document.location.href = newUrl;
Posted by: Guest on May-09-2021
7

js onclick redirect

<button onclick="location.href='www.yoursite.com'">Click Me</button>
Posted by: Guest on June-16-2020

Browse Popular Code Answers by Language