Package org.htmlunit

Interface OnbeforeunloadHandler

  • All Superinterfaces:
    java.io.Serializable

    public interface OnbeforeunloadHandler
    extends java.io.Serializable
    A handler for onbeforeunload events.
    • 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 occurred
        returnValue - the event's returnValue
        Returns:
        true to accept the event, false otherwise