Change format and text displayed with JavaScript prompt()?

后端 未结 5 1642
天涯浪人
天涯浪人 2021-01-25 12:53

I\'m using JavaScript\'s prompt() function.

  var favorite = prompt(\'What is your favorite color?\', \'RED\');

I\'m using IE 7

5条回答
  •  醉梦人生
    2021-01-25 13:03

    No, there isn't.

    The closest you can come is to mock up a fake one using DOM elements.

提交回复
热议问题