Answers for "how to redirect to another page in html on button click"

19

git cancel last commit

git reset --soft HEAD~1
Posted by: Guest on March-30-2020
7

undo local commit

$ git reset --soft HEAD~1
Posted by: Guest on April-09-2020
6

git revert commit

# Reset the index and working tree to the desired tree
# Ensure you have no uncommitted changes that you want to keep
git reset --hard 56e05fced

# Move the branch pointer back to the previous HEAD
git reset --soft HEAD@{1}

git commit -m "Reverting to the state of the project at f414f31"
Posted by: Guest on April-28-2020
1

revert back to a commit git

git reset --hard 4a155e5
Will move the HEAD back to where you want to be
Posted by: Guest on March-05-2021
1

revert last commit

git reset HEAD~
Posted by: Guest on August-13-2020
0

git rollback

git reset --hard <tag/branch/commit id>
Posted by: Guest on April-17-2021
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
7

js onclick redirect

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

how to open a new html page on button click in javascript

<button id="myButton" class="float-left submit-button" >Home</button>

<script type="text/javascript">
    document.getElementById("myButton").onclick = function () {
        location.href = "www.yoursite.com";
    };
</script>
Posted by: Guest on April-29-2020
9

html button redirect

You can make <button> tag to do action like this:

<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>
It's simple and no javascript required!
Posted by: Guest on June-12-2021
2

html redirect to another page

<script>
  function foo() {
  	window.location.href = url
  }
</script>
Posted by: Guest on December-09-2020

Code answers related to "how to redirect to another page in html on button click"

Code answers related to "Javascript"

Browse Popular Code Answers by Language