IDEA doesn't seem to understand beforeunload event
For some reason when I type in an html document something like this:
<body onunload="doUnload()" onbeforeunload="doBeforUnLoad()"> It looks like this:

and the beforeunload event function shows as not in use.
Is this just some bug or am I missing something?
TIA
请先登录再写评论。
Typo in the function name?
No that's not relevent. The function name can be anything - for some reason intelliJ recognizes the other events but not beforeunload.
Please submit a bug at http://youtrack.jetbrains.com/issues/WEB .
Sure. OK thanks. :)