JavaScript - insertAdjacentHtml

javascript-dom

object.insertAdjacentHTML(where, html) 

Possible values for the 'where' parameter:

beforeBegin: Inserts html immediately before the object.
afterBegin:Inserts html after the start of the object but before all other 
  content in the object.
beforeEnd: Inserts html immediately before the end of the object but after 
  all other content in the object
afterEnd: Inserts html immediately after the end of the object.
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License