Javascript window.prompt "file:// says:" text hiding

  1. 3 weeks ago

    I am using a javascript command to obtain some data from users using:

    var sign = window.prompt('Are you feeling lucky?'); // open the window with Text "Are you feeling lucky?"

    Is there a way to style the popup that actually starts like this:

    The page "file://" says: <-- could we hide this line?
    Are you feeling lucky?
    [ user input goes here ]
    [ cancel ] [ accept ]

  2. admin

    Jun 16 Administrator

    This is not possible yet. For the alert function, we did made a JS API : showAboutDialog() function. We don't have a built-in function for user-input yet.


or Sign Up to reply!