c= '<div class="b-adv__line"><div class="b-adv__title"><a target="_blank" href="http://yabs.yandex.ru/count/6X9AioDhIJ040000ZhEVLk44KfK2cm5kGoq1D8Yeq7WDYQOSgoYTe-8D19AgKUaHYgBQOGobcDJ4ZG6Hiu25QmwNknRGtmcFhYJqwf-mUU471fE53Q8lYwCqJcj2Z90k8g3Gr35KaBaDfvWK0daC"><b>Луки</b> по доступным ценам</a>';
div=document.createElement("div");
div.innerHTML= c;
link= div.getElementsByTagName("a")[0].href;
alert(link);