I am trying to refresh the browser window using the following code:
window.location = window.location.href;
but it doesn't refresh the window, however when I try to do this:
window.location = "http://www.google.com";
It does redirect me to Google. Can anyone please tell me what I am doing wrong here? Why doesn't it refresh the browser window?