I have the problem that when executing a script the error message appears:
Cannot read property 'addEventListener' of null
My JavaScript code:
var bghtooltipin = document.getElementById('bgh-tooltipin1');
var bghtooltipout = document.getElementById('bgh-tooltipout1');
bghtooltipin.addEventListener('mouseover', mouseOver);
bghtooltipin.addEventListener('mouseout', mouseOut);
I looked at a lot of troubleshooting tips but didn't find anything that would fix my problem.