I want to be able to click anywhere inside the body except that one specific element. I can\'t find out what\'s wrong with the code I have done.
When I click on the one
You are missing one piece to this. You need to stop the event from bubbling up from the except object if it is clicked
except.addEventListener("click", function(event){event.stopPropagation()}, false);