Package org.htmlunit
Interface OnbeforeunloadHandler
-
- All Superinterfaces:
java.io.Serializable
public interface OnbeforeunloadHandler extends java.io.Serializable
A handler foronbeforeunload
events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
handleEvent(Page page, java.lang.String returnValue)
Handles anonbeforeunload
event for the specified page.
-
-
-
Method Detail
-
handleEvent
boolean handleEvent(Page page, java.lang.String returnValue)
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
-
-