I have an image inside a div.facebook that receives clike
mouse and redirects to an external page:
$("div.facebook img").click(function() {
$(location).attr('href','http://www.facebook.com');
});
I happen to want it to open in another window.
I tried several options, including:
$("div.facebook img").click(function() {
$(location).attr('href','http://www.facebook.com');
.attr('target','_blank')
});
But it did not work.
What can be done in this case to continue with jQuery ?