Blog

Want to hear more?
Sign up to our newsletter to get inspired.

Want to hear more?
Sign up to our newsletter to get inspired.

' html+= 'test' html+= '' document.addEventListener("DOMContentLoaded", function() { // Get the unordered list element var myList = document.getElementById('blog-post-ul'); // Create the new list item with the inserted content var insertedContent = document.createElement('li'); insertedContent.innerHTML = html; // Insert the new list item after the second item (index 1) var secondItem = myList.children[1]; myList.insertBefore(insertedContent, secondItem.nextSibling); }); --> -->