Package org.htmlunit
Interface OnbeforeunloadHandler
- All Superinterfaces:
Serializable
A handler for
onbeforeunload
events.-
Method Summary
Modifier and TypeMethodDescriptionboolean
handleEvent
(Page page, String returnValue) Handles anonbeforeunload
event for the specified page.
-
Method Details
-
handleEvent
Handles anonbeforeunload
event for the specified page.- Parameters:
page
- the page on which the event occurredreturnValue
- the event'sreturnValue
- Returns:
true
to accept the event,false
otherwise
-