V7: Beforeunload Trap

Registers a beforeunload handler that fires repeatedly. Should be suppressed after 2 fires.

waiting