JavaScript - controlling the insertion point for [removed]

后端 未结 7 992
暗喜
暗喜 2020-12-01 06:09

I would like to create a page that runs a 3rd party script that includes document.write after the DOM was already fully loaded.

My page is not XHTML. My

7条回答
  •  囚心锁ツ
    2020-12-01 06:27

    In order to alter the content of the page after the DOM has rendered you need to either use a javascript library to append HTML or text at certain points (jQuery, mootools, prototype, ...) or just use the innerHTML property of each DOM element to alter/append text to it. This works crossbrowser and doesn't require any libraries.

提交回复
热议问题