Home › Forums › JavaScript › Load my .js code, only when ‘x’ DIV exists › Re: Load my .js code, only when ‘x’ DIV exists
June 20, 2012 at 3:56 am
#104642
Member
if (document.getElementById('divID')) {
//do something
}
?