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:

beforeunload.png
and the beforeunload event function shows as not in use.

Is this just some bug or am I missing something?

TIA

0

Typo in the function name?

0

No that's not relevent. The function name can be anything - for some reason intelliJ recognizes the other events but not beforeunload.

0

Sure. OK thanks. :)

0

请先登录再写评论。