Hi All,
I have a asp.net webform with a button. The OnClientClick event is wired to a javascript function.
I need this function to redirect the current page to this page.
After much reading is have tried all the following, but to no avail:
var url = "http://www.google.com";
document.location = url; //Doesn't Work
document.location.href = url; //Doesn't Work
window.location = url; //Doesnt Work
window.location.href = url; //Doesnt Work
Any Help or advice are welcome.
Ps. I am entering the JS function as my alert message pops up