How to create a button that redirect to certain location in a website which is still on the same page?
If you can create a clickable link to a webpage, it doesn't take too much more effort to create a clickable link to a certain part of that webpage. Google "html anchor" for more info. If you can create a clickable link that takes the user where they want to go, there's not much more to make a clickable button to do so. The button will have some option to do some action when clicked. You want it to behave like a regular old link.
You can simply use HTML bookmarking to redirect visitors to a certain location on a web page. You first need to create an id bookmark like this:
<a id="faqs">Read our FAQs</a>
And then, create a link pointing to the bookmark like this:
On the button click you redirect like this:
<button onclick="window.location.href = "https://www.example.com";">Click</button>
You can use simply on the button click you redirect one page to another page like that you can below code line