# Uses of Interface
org.htmlunit.OnbeforeunloadHandler

Packages that use OnbeforeunloadHandler
Package
Description
org.htmlunit
Framework classes (contains the `WebClient` class which is the main entry point).

- ## Uses of OnbeforeunloadHandler in org.htmlunit

  Methods in org.htmlunit that return OnbeforeunloadHandler
  Modifier and Type
  Method
  Description
  `OnbeforeunloadHandler`
  WebClient.`getOnbeforeunloadHandler()`
  Returns the onbeforeunload handler for this `WebClient`.
  Methods in org.htmlunit with parameters of type OnbeforeunloadHandler
  Modifier and Type
  Method
  Description
  `void`
  WebClient.`setOnbeforeunloadHandler(OnbeforeunloadHandler onbeforeunloadHandler)`
  Sets the onbeforeunload handler for this `WebClient`.