Menu
i get this error when i try to include a script using this: (using firefox)
[code=html]
function includejs(jsFile){
var scriptNode = document.createElement(‘script’);
document.getElementsByTagName(“head”)[0].appendChild(scriptNode);
scriptNode.language=’javascript’;
scriptNode.src=jsFile;
}
<body onload=”includejs(main.js);”>
“element referenced by ID/NAME in global scope. Use WC3 standard document.getElementById() instead….
i am soooo confused.. i have tried 100 different variations of this script.