Files
Nim/nimcache/runnableExamples/dom_examples_3.nim
github-actions[bot] c7440eccf2 Deploy to GitHub pages
2025-09-27 04:02:34 +00:00

12 lines
381 B
Nim

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