51
rated 0 times
[
56]
[
5]
/ answers: 1 / hits: 42309
/ 14 Years ago, fri, january 7, 2011, 12:00:00
Below is the code for my YWA wrapper
var astr_ywascript = (document.createElement(script).type = text/javascript).src = http://d.yimg.com/mi/eu/ywa.js;
document.head.appendChild(astr_ywascript); // <- error on this line
It's run on page load, so it makes no sense that JS can't find the document head tag.
Any ideas?
Thanks
Opera throws this error on the same line. Uncaught exception: Error: WRONG_ARGUMENTS_ER
Firebug says: document.head is undefined [Break On This Error] document.head.appendChild(astr_ywascript);
More From » onload