Package com.gargoylesoftware.htmlunit
Interface OnbeforeunloadHandler
-
- All Superinterfaces:
java.io.Serializable
public interface OnbeforeunloadHandler extends java.io.SerializableA handler for onbeforeunload events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhandleEvent(Page page, java.lang.String returnValue)Handles an onbeforeunload event for the specified page.
-
-
-
Method Detail
-
handleEvent
boolean handleEvent(Page page, java.lang.String returnValue)
Handles an onbeforeunload event for the specified page.- Parameters:
page- the page on which the event occurredreturnValue- the event's returnValue- Returns:
trueto accept the event,falseotherwise
-
-