Hi
I'm trying to make a little script that'll inject a tag in a page.
Here it is:
<script type="text/javascript" charset="utf-8">
var url = 'http://my_url.com/js/widget_rss.js?cle=4c65683101e22&host=' + window.location.hostname;
var scriptTag = document.createElement('script')
scriptTag.src = url;
var head = document.getElementsByTagName("head")[0];
(head || document.body).appendChild(scriptTag);
</script>
It is working, it calls the other file and the file runs but it makes the browser load forever...
Any ideas what's wrong about it?
Thanks!