Home › Forums › JavaScript › Load my .js code, only when ‘x’ DIV exists › Re: Load my .js code, only when ‘x’ DIV exists
June 21, 2012 at 11:49 am
#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.