document.head.appendChild or document.createElement not working in IE

后端 未结 1 702
无人及你
无人及你 2021-02-19 00:52

I have a script running in the head of my html document and it works in every browser except for internet explorer. Tested in Opera, Safari, Chrome, Firefox, Internet Explorer.<

相关标签:
1条回答
  • 2021-02-19 01:53

    Try document.getElementsByTagName('head')[0] instead of document.head

    0 讨论(0)
提交回复
热议问题