Package org.htmlunit

# Interface OnbeforeunloadHandler

All Superinterfaces:
  `Serializable`

public interface OnbeforeunloadHandler extends Serializable
A handler for `onbeforeunload` events.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `handleEvent(Page page, String returnValue)`
  Handles an `onbeforeunload` event for the specified page.

- ## Method Details

  - ### handleEvent

    boolean handleEvent(Page page, 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