redirect javascript code
snippet in javascript

redirect javascript code

user7626

window.location.href = "http://mywebsite.com/home.html";

js onclick redirect

user6867

<button onclick="location.href='www.yoursite.com'">Click Me</button>