此段代码中,如何才能让它点击a标签中的文字后弹窗新窗口,在a标签中加了target="_blank" 并未打开新窗口?
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
</head>
<body>
<a href="javascript:void(0)" class="link">点击到百度</a>
</body>
<script type="text/javascript">
$(function(){
$('.link').click(function(){
window.location.href="http://baidu.com/"
})
})
</script>
</html>