119
rated 0 times
[
125]
[
6]
/ answers: 1 / hits: 72046
/ 10 Years ago, wed, july 9, 2014, 12:00:00
Consider:
$('.b').click(function(){
var link = 'www.yahoo.com';
window.location.href(link);
});
I expect it to open www.yahoo.com, but it says string is not a function. Why?
jsFiddle: http://jsfiddle.net/V9Xat/
More From » jquery