You can do like this, ok you'll have problems with popup blockers but if this is only for debugging purposes you can simply disable blocker and that's it.
a = $('a');
$.each(a, function(i,val){
window.open(val, '_blank');
});
Here is the whole code and it worked for me. Actually I didn't test it on a server, just checked html file on my desktop. Firefox doesn't allow popups to display even I said to display popups but IE has option to allow popups for local files and it works, opens two windows for google and yahoo.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="jquery-min.js"></script>
</head>
<body>
<a href="http://www.google.com">aa</a>
<a href="http://www.yahoo.com">bb</a>
<script>
$(document).ready(function() {
a = $('a');
$.each(a, function(i,val){
window.open(val, '_blank');
});
});
</script>
</body>
</html>