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