Reputation: 141
$(button).click(function(){ window.open("www.wxample.com"); });
this code open page in new window. Go to page without having to open a new window?
Upvotes: 1
Views: 39
Reputation: 20636
You need window.location
window.location
$(button).click(function(){ window.location.href = "www.wxample.com"; });
See This Link for more details on how location works.
location
Upvotes: 3