I am trying to redirect a page to another using this code:
Code:
function GoToURL() {
var URLis = "http://google.com.au";
var location=(URLis);
this.location.href = location;
}
I felt sure it used to work. If conditions are right, you call the function GoToURL() and it changes the page to, in this case, google.
But now it doesn't work!
Is it obvious what is wrong?