adspace


How to redirect to new page on click of button in html?

Answer Posted / Surya Bhatia

To redirect to a new page on button click in HTML, you can use the JavaScript window.location object. For example: `<button onclick="window.location.href='new-page.html'">Click here</button>`

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the name of the website?

922


What are the new api's provided by the html5 standard? Give a brief description of each.

899


How comfortable are you with writing html entirely by hand?

876


How do I put text on the next line in html?

871


Can you list the new input type attributes in html5?

862


What is the current version of edge?

947


What is the simplest html page?

944


List out the new features of html5?

871