I have a div with id=\"content-area\", when a user clicks outside of this div, I would like to alert them to the fact that they clicked outside of it. How would I use JavaSc
Use document.activeElement to see which of your html elements is active.
document.activeElement
Here is a reference: document.activeElement in MDN