var a=document.getElementsByTagName("HEAD")[0].innerHTML.match(/\http:[^\s\"]+[^\" >]*?/g)[0];alert(a)