How to redirect to new page on click of button in html?
Answer / 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 |
List out the advantages of html5?
How to utilize a server-sent event in HTML5?
Which methods are used to draw a straight line on a Canvas?
What is unpaired tag?
What are HTML tags?
What is dom in browser?
What is xpath in html?
What are the features of xhtml?
How do I set the focus to the first form field?
Why td is used in html?
Explain alternate text in image mapping?
What is dhtml? What are the features of dhtml?