0

I'm working on designing a website for my academic project,in which the user has to fill some form. Now,the thing i want is whenever user tries to navigate nearby the closing tab (And not when he/she want to close it) or tires to enter the URL for some other website with being on the FILL-UP form page, user gets a pop-up (Which i have already designed using the overlay).Please note that i don't want to show the pop-up when user clicks the close button,Which i suppose can be easily done with Window.Close() or onbeforeunload() function of the javascript.

user123
  • 1
  • 2
  • I don't think this is possible. The best way is probably tracking if the user gets his cursor out of the page. – Joel Almeida Jul 02 '15 at 10:58
  • Web pages should leave my f***ing browser controls alone :p – Jaromanda X Jul 02 '15 at 11:00
  • That's why i don't want them to get irritated by asking the that leave the page confirmation. I just want that overlay to just pop and nothing more.If user @JaromandaX don't want to give it a F*** he/she can choose to do so without any irritating messages. – user123 Jul 02 '15 at 11:13
  • sorry, it was a tongue in cheek comment. – Jaromanda X Jul 02 '15 at 11:17
  • It's possible , i've seen some websites are using it @JoelAlmeida . Yes your solution can be a possible solution but how to track that thing whether the cursor is out of window or not. – user123 Jul 02 '15 at 11:17
  • http://stackoverflow.com/questions/923299/how-can-i-detect-when-the-mouse-leaves-the-window#answer-3187524 – Joel Almeida Jul 02 '15 at 11:35

0 Answers0