insertAfter function for the DOM

/ Published in: JavaScript
Save to your folder(s)

Vert useful function since there isn't an insertAfter function in the DOM. Call it inside scripts, it expects
insertAfter(*the new element to be inserted*, *the element you want it to be inserted after*);

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.