Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Run/Continue script when a window is closed, or prevent window from closing

Featured Replies

I have a very simple script designed to let a user preview an invoice before printing it. The script pauses after entering preview mode, so the user just has to hit Enter to continue the script (which goes on to the printing), since the status area on the left will be hidden.

The problem is that it's very easy to imagine a user hitting the X to close the window instead of hitting Enter, and I'm wondering if there's a way to run a script when the window closes in order to catch this 'error.' If there's not, is there any way to prevent the user from closing the window completely?

Thanks.

If you start the script with Allow User Abort [Off], the user will be unable to close the window.

  • Author

Ah, thank you. That's something I didn't know about that script step.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.