title: Trigger an Action When Mouse Enters URL Field
body: <p>I'm designing a lightbox to appear when a user attempts to abandon a website (I work in UX).</p>
  
  <p>Previously we have used a line of JS to say 'if the mouse leaves the window to trigger the lightbox' but this is causing frustrations when users just want to click the back button for example.</p>
  
  <p>I've heard from a UX expert that the lightbox may be triggered to appear only when the mouse hovers over the URL input field in a browser or when it passes over the close button in the top right of the window.</p>
  
  <p>I understand JS but unsure if this is actually possible since it requires targeting locations outside of the window.</p>
  
  <p>Question is, can this be done? If so, does it require any type of code apart from JS/JQuery?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Since people are down voting this genuine question - I'll add that I don't agree with the content of this I just need to know the possibilities.</p>