I have difficulty on integrating my JavaScript syntax. My code is working on Internet Explorer (IE). However, I encountered a JavaScript error when running it on Safari.
You're missing the event variable in your function
document.onmouseup = function hideaddrspopup (event) { if (event.srcElement.id != 'fieldName' || event.target.id != 'fieldName') { alert(event.srcElement.id); alert(event.target.id); } }