First, I would check if the element already exists. If it doesn't I will create the element and add it to the DOM tree. If ( document .querySelector( '#title' )) { } else { var title = document .createElement( 'h1' ); title.innerHTML = 'New Heading' ...
wpsyed.hashnode.dev2 min read
if you have any questions then please feel free to ask! I would also appreciate it if you mind checking my techcomputerinfo.com Computerinfo based website.
ScholorshipOwl
dev
Laptopsea