When I try to append the following script to IE, I get this error:
"Error: Unable to get value of the property 'appendChild': object is null or undefined"
It works fine in Chrome, but when testing on IE9 this occurs. Can anyone tell me what the error is?
// create script in document
var fbScript = document.createElement("script");
fbScript.type = "text/javascript";
// make script source the facebook plugin
fbScript.src = "http://connect.facebook.net/en_US/all.js#xfbml=1";
// append script to appropriate tab
document.getElementById('Tab' + tab_counter).appendChild(fbScript);
Tab
+ tab_counter – Cementite