The insertAdjacentText() method inserts a given text node at a given position relative to the element it is invoked upon.