как правильно установить событие на кнопку
Здравствуйте, очень нужна помощь!
возможно ли в код ниже разместить событие onclick="yaCounter42779989.reachGoal('klik'); return true;"
<div id="grattis_77160">
<script type="text/javascript">
(function(){var func=function(){GRATTIS.section(77160)};
if(typeof GRATTIS==='undefined'){var s=document.createElement('script');
s.type='text/javascript';s.async=true;s.defer='defer';s.src='//cdn'+Math.round((Math.random() * 3) + 1)+'.grattis.ru/publicdata/code.js?r='+(Math.random()*1000|0);
var i=setInterval(function(){if(typeof GRATTIS!=='undefined'){func();clearInterval(i)}},1 00);
document.getElementsByTagName('head')
[0].appendChild(s)
}else{func()}})();</script></div>
<!--/noindex--></div>
|