Skip to content

Page 'onunload' and 'onbeforeunload' - Prevents Block #386

@HeyVern

Description

@HeyVern

Certain webpages use 'onunload' and 'onbeforeunload' to present such messages as "are you sure you want to leave this page"...etc. The issue is, if this is a page you are trying to block with a timer, the user can simple press 'cancel' and the page navigation to the block page is canceled effectively allowing the user to bypass the block until the page is manually refreshed. Is there any way to bypass such prompts and force the page to refresh anyway, or simply block the script execution by filtering it out?

Example page: taming.io

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions