JavaScript is disabled on your browser.
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method
org.htmlunit

Interface PromptHandler

  • All Superinterfaces:
    Serializable


    public interface PromptHandler
    extends Serializable 
    A handler for JavaScript window.prompt(). Prompts are triggered when the JavaScript method Window.prompt() is called.
    Author:
    Mike Bowler, Ahmed Ashour, Ronald Brill
    • Method Summary

      All Methods
      Modifier and Type Method and Description
      String handlePrompt (Page page, String message, String defaultValue)
      Handle a call to Window.prompt() for the given page.
    • Method Detail

      • handlePrompt

        String handlePrompt(Page page,
         String message,
         String defaultValue)
        Handle a call to Window.prompt() for the given page.
        Parameters:
        page - the page on which the prompt occurred
        message - the message in the prompt
        defaultValue - the default value in the prompt
        Returns:
        the value typed in or null if the user pressed cancel
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /