Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Load my .js code, only when ‘x’ DIV exists Re: Load my .js code, only when ‘x’ DIV exists

#104710
filipeb
Member

";
document.getElementsByTagName('head')[0].appendChild( toAppend );
}

I didn’t test it, but that should be what you’re looking for. I just used the method posted through TheDoc‘s comment.