I want to add DOM element to head section of HTML. jQuery does not allow adding DOM element script to the head section and they execute instead, Reference.
I want t
you could do:
var scriptTag = document.createElement("script"); scriptTag.type = "text/javascript"; scriptTag.src = "script_source_here"; (document.getElementsByTagName("head")[0] || document.documentElement ).appendChild(scriptTag);