I am making add Script utility function for my project.it is working good in chrome,firefox,IE10,IE9 but it is throwing "Unknown run time error" in IE8
util.addScript = function appendStyle(scriptcontetnt) {
var st = document.createElement('script');
st.type = "text/javascript";
st.innerHTML = scriptcontetnt; //throw error at this point
document.getElementsByTagName('head')[0].appendChild(st);
return true;
};
I know using innerhtml throw errror in ie8 so i read diferent threads related to this but did't get any correct solution for this issue