Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

htmladjacent

// <div id="one">one</div>
var d1 = document.getElementById('one');
d1.insertAdjacentHTML('afterend', '<div id="two">two</div>');

// At this point, the new structure is:
// <div id="one">one</div><div id="two">two</div>
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #htmladjacent
ADD COMMENT
Topic
Name
6+3 =