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

4 comments
Comment actions Permalink

Typo in the function name?

0
Comment actions Permalink

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

0
Comment actions Permalink

Sure. OK thanks. :)

0

Please sign in to leave a comment.