Adding an onclick function to go to url in JavaScript?
Try
window.location = url;
Also use
window.open(url);
if you want to open in a new window.
Simply use this
onclick="location.href='pageurl.html';"
Try
window.location = url;
Also use
window.open(url);
if you want to open in a new window.
Simply use this
onclick="location.href='pageurl.html';"