#[
autogenerated by docgen
loc: /build/nim/src/nim/lib/js/dom.nim(30, 17)
rdoccmd: -b:js -r:off
]#
import std/assertions
import "/build/nim/src/nim/lib/js/dom.nim"
{.line: ("/build/nim/src/nim/lib/js/dom.nim", 30, 17).}:
  proc example(e: Event) = echo "Document is unloaded"
  document.addEventListener("unload", example)  # You can also use "beforeunload".

