GSA / smartpay-training

Prototype for new GSA SmartPay training quizzes
8 stars 4 forks source link

"Leave Site" Message for Mobile #399

Open JessicaMarine1 opened 9 months ago

JessicaMarine1 commented 9 months ago

During UAT, the "Leave site" warning did not appear for exit being finishing a quiz and closing the mobile browser.

john-labbate commented 2 weeks ago

For the unload event to confirm leaving

  1. Most modern browsers (Chrome, Safari, Firefox) will ignore your words and present a generic message. This prevents webpage authors from writing egregious messages, e.g., "Closing this tab will make your computer EXPLODE!".

  2. Showing a prompt isn't guaranteed, like playing audio, browsers can ignore your request.

JennaySDavis commented 2 weeks ago

After discussion with the product owners, this user story is being closed see the comment above for additional information. An enhancement ticket has been created for potential future development #588