Reputation: 1
I have a few pages to load and used the following JavaScript to load them on a onclick event :
Here is my code
var varUrl = "./MobileMenus/MainMenu.aspx";
window.location.href = varurl;
After updates was run on my laptop I cannot use the above script anymore it just does not show the href property after I type the location to call the href property. When putting it in a alert box it display as Invalid. On VS2012 it works fine but not on VS2008 any more.
How can i do this ?
Upvotes: 0
Views: 36
Reputation: 1296
You missed the variable casing, it should be
window.location.href = varurl; <-- before
window.location.href = varUrl; <-- now
try that
Upvotes: 2