ХАМТРАН АЖИЛЛАХ САНАЛ

  
//customs document.onclick = function(event) { var el = event.target; //alert(el.nodeName); if (el.nodeName == "A" && el.classList.contains("call-now")) { var num = el.getAttribute('href'); var referer = window.location.href; var cta_id = el.getAttribute('data-cta-id'); //alert(num + " " + referer); var request = new XMLHttpRequest(); request.open('GET', '//network.mn/api.php/cta/call?&url=' + num + '&cta_id=' + cta_id, true); request.onload = function() { if (request.status >= 200 && request.status < 400) { // Success! var resp = request.responseText; } else { // We reached our target server, but it returned an error } }; request.onerror = function() { // There was a connection error of some sort }; request.send(); } }; var div = document.createElement("div"); div.innerHTML = '
\ +976 8911-0695 \
'; document.getElementsByTagName('BODY')[0].appendChild(div);