javascript - Script for changing numbers giving error -
<script type="text/javascript"> var adiinit = "xxxx", adirvo = true; var adifunc = null; (function () { var adisrc = document.createelement("script"); adisrc.type = "text/javascript"; adisrc.async = true; adisrc.src = ("https:" == document.location.protocol ? "https://static-ssl" : "http://static-cdn") + ".responsetap.com/static/scripts/rtaptrack.min.js"; var s = document.getelementbyid("script")[0]; s.parentnode.insertbefore(adisrc, s); })(); </script>
on add in footer variable s coming null. giving error in browsers , phone numbers not changing.
how can resolve . please need fix asap
try below instead of var s = document.getelementbyid("script")[0];
var s = document.getelementsbytagname("script")[0];
Comments
Post a Comment