confirm--------------------------------------------------------------------------------DescriptionDisplays a Confirm dialog box with the specified message, and OK and Cancel buttons. Syntax
object.confirm([message])Parameter Description
message Optional. (String) String to display. Return ValueReturns TRUE if the user chooses OK, or FALSE if the user chooses Cancel. ResYou have no control over the dialog box title. Applies Towindow alert--------------------------------------------------------------------------------DescriptionDisplays an Alert dialog box with a message and an OK button. Syntax
object.alert([message])Parameter Description
message Optional. (String) String to display. Return ValueNo return value. ResThe title bar of the Alert dialog box cannot be changed. Applies Towindow
prompt--------------------------------------------------------------------------------DescriptionDisplays a Prompt dialog box with a message and an input field. Syntax
object.prompt([message [, inputDefault]])Parameter Description
message Optional. (String) String to display.
inputDefault Optional. (String) String or integer that represents the default value of the input field. Return ValueReturns the value that the user types in. ResIf the inputDefault parameter is not supplied, the dialog box displays the value <undefined>. You have no control over the title of the prompt box. Applies Towindow
手册上的,希望对你有用~
object.confirm([message])Parameter Description
message Optional. (String) String to display. Return ValueReturns TRUE if the user chooses OK, or FALSE if the user chooses Cancel. ResYou have no control over the dialog box title. Applies Towindow alert--------------------------------------------------------------------------------DescriptionDisplays an Alert dialog box with a message and an OK button. Syntax
object.alert([message])Parameter Description
message Optional. (String) String to display. Return ValueNo return value. ResThe title bar of the Alert dialog box cannot be changed. Applies Towindow
prompt--------------------------------------------------------------------------------DescriptionDisplays a Prompt dialog box with a message and an input field. Syntax
object.prompt([message [, inputDefault]])Parameter Description
message Optional. (String) String to display.
inputDefault Optional. (String) String or integer that represents the default value of the input field. Return ValueReturns the value that the user types in. ResIf the inputDefault parameter is not supplied, the dialog box displays the value <undefined>. You have no control over the title of the prompt box. Applies Towindow
手册上的,希望对你有用~
解决方案 »
- 谁能帮我解析一下extjs2.0 中,我已经拿到json的值并赋值给store了,想把这个store放到formpanel中
- 求 框架中链接从新窗口打开,同时触发当前另一框架页中的事件
- 怎样取到下拉列表选到的值
- JS的几张图片切换功能,在IE下可运行,在firefox下就不行了
- 有个问题请教一下,就是163打开首页的时候出现的那个flash广告是怎么做的啊?
- Extjs中如何实现点击导航菜单时将点击的菜单显示到左边树型菜单中?
- html问题 求大神
- ***iframe动态生成option*****
- 这两个想法能实现吗,怎么实现,请大侠们帮帮我
- ajax返回值处理
- 打开无边框窗口失效了,请教javascript大人~
- 在JavaScript中,嵌入以下ASP语句,为何显示的菜单项中多了一个问号?加急!!在线等!
仅仅最多一个参数么?真奇怪为什么老板让我写两个和三个参数的东东
按确定,返回true; 按取消返回false.<script>
var bln = window.confirm("确定吗?");
alert(bln)
</script>
window.alert参数,只有一个,显示警告框的信息;
无返回值.<script>
window.alert("确定.")
</script>window.prompt参数,有两个,
第一个参数,显示提示输入框的信息.
第二个参数,用于显示输入框的默认值.
返回,用户输入的值.<script>
var str = window.prompt("请输入密码","password")
alert(str);
</script>
hoho,我好像还给很多高人发了消息,在这里一并感谢!谢谢你们的关注!