So I did
$('a.class').click(function(e){
newWindow = window.open(link.attr('href'), 'name', "height=600,width=1000");
e.preventDefault();
});
But in IE it didn’t open a new window, it uses the same window and it follows the link in the same window instead of doing nothing in the window and then open the link in a new window…
What should I do to make it open the link in a new window in IE (works in firefox, chrome)
Not sure but i think
link.attr('href')is not working as expected, replace withjQuery(this).attr('href')keyword.