com.gargoylesoftware.htmlunit
Interface OnbeforeunloadHandler


public interface OnbeforeunloadHandler

A handler for onbeforeunload event.

Version:
$Revision: 2132 $
Author:
Ahmed Ashour

Method Summary
 boolean handleEvent(Page page, String message)
          Handle an onbeforeunload event for the given page.
 

Method Detail

handleEvent

boolean handleEvent(Page page,
                    String message)
Handle an onbeforeunload event for the given page.

Parameters:
page - The page on which the event occurred.
message - The message in the event.
Returns:
true if we are simulating the ok button. False for the cancel button.


Copyright © 2002-2010 Gargoyle Software Inc.. All Rights Reserved.