Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 750 Bytes

AX12.md

File metadata and controls

26 lines (17 loc) · 750 Bytes

Custom message before document unload

Use in the beforeunload event listener event.returnValue = "custom message" to define the custom message. Or use event.preventDefault(); to display default message.

Tags

  • dom
  • event
  • beforeunload

Applications

  • ✅ IE 9
  • ❎ Firefox 4
  • ❎ Opera 37
  • ✅ Opera 38
  • ❎ Chrome 50
  • ✅ Chrome 51

See also