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

#104642
filipeb
Member

if (document.getElementById('divID')) {
//do something
}

?