I'm trying to display the elements in an array but doesn't seem to work:

Code:
var myurl=new Array("google.com", "yahoo.com"); 

for (i=0;i<=myurl.length-1;i++){
   document.writeln("<a href='http://www.' +  myurl[i] +  target='_blank'>");
}

Not sure why it is not working??