| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1545 人关注过本帖
标题:请教~~在弹出窗口时遇到问题
只看楼主 加入收藏
wanderfor
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2005-1-10
收藏
 问题点数:0 回复次数:7 
请教~~在弹出窗口时遇到问题
  在页面点击“确认”后----会弹出个新窗口即:一个BUTTON(确定)另一个为CANNL
这样的弹出页面应该怎么做??我按照教程上说的做了几次都没有成功,希望高手指点一下~最好能提供代码给我!!谢谢
搜索更多相关主题的帖子: 窗口 BUTTON CANNL 页面 
2005-01-20 16:20
ronan
Rank: 1
等 级:新手上路
帖 子:44
专家分:0
注 册:2004-12-27
收藏
得分:0 
window.confirm([sss]);

Happiness is a journey, not a destination. So... Work like you don\'t need money Love like you\'ve never been hurt And dance like no one\'s watching 才开的游戏论坛http://ronan.185.cc/,希望碰场
2005-01-20 19:37
wanderfor
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2005-1-10
收藏
得分:0 
就是下面的代码?

2005-01-23 10:24
live41
Rank: 10Rank: 10Rank: 10
等 级:贵宾
威 望:67
帖 子:12442
专家分:0
注 册:2004-7-22
收藏
得分:0 
以下是引用ronan在2005-1-20 19:37:13的发言: window.confirm([sss]);
ronan 就不能写一下注释和用法吗?我都没看懂。
2005-01-23 11:23
live41
Rank: 10Rank: 10Rank: 10
等 级:贵宾
威 望:67
帖 子:12442
专家分:0
注 册:2004-7-22
收藏
得分:0 

confirm Method

Internet Development Index

Displays a confirmation dialog box that contains an optional message as well as OK and Cancel buttons.

Syntax

bConfirmed = window.confirm( [sMessage])

Parameters

sMessage Optional. String that specifies the message to display in the confirmation dialog box. If no value is provided, the dialog box does not contain a message.

Return Value

Boolean. Returns one of the following possible values:

true The user clicked the OK button.
false The user clicked Cancel button.

Remarks

The title bar of the confirmation dialog box cannot be changed.

Standards Information

There is no public standard that applies to this method.

See Also

alert, prompt

[此贴子已经被作者于2005-1-23 11:36:27编辑过]

2005-01-23 11:34
live41
Rank: 10Rank: 10Rank: 10
等 级:贵宾
威 望:67
帖 子:12442
专家分:0
注 册:2004-7-22
收藏
得分:0 
bConfirmed = window.confirm( [sMessage]) 就是弹出窗口取得一个bool变量。参数sMessage是表示弹出对话框中提示什么。
2005-01-23 11:39
Knocker
Rank: 8Rank: 8
等 级:贵宾
威 望:47
帖 子:10454
专家分:603
注 册:2004-6-1
收藏
得分:0 

是消息框吗? using System; using System.Windows.Forms;

class MyMessageBox { public static void Main() { DialogResult m= MessageBox.Show("是不是这个样子?","消息框",MessageBoxButtons.OKCancel,MessageBoxIcon.Warning); if(m==DialogResult.OK) MessageBox.Show("OK!就是这里","消息框",MessageBoxButtons.OK,MessageBoxIcon.Warning); if(m==DialogResult.Cancel) MessageBox.Show("你单击了 取消 ","消息框",MessageBoxButtons.OK,MessageBoxIcon.Warning); } }


九洲方除百尺冰,映秀又遭蛮牛耕。汽笛嘶鸣国旗半,哀伤尽处是重生。     -老K
治国就是治吏。礼义廉耻,国之四维。四维不张,国之不国。   -毛泽东
2005-01-23 15:09
live41
Rank: 10Rank: 10Rank: 10
等 级:贵宾
威 望:67
帖 子:12442
专家分:0
注 册:2004-7-22
收藏
得分:0 
knocker 你的也对,不过楼主要的好像不要这么麻烦,就是询问一下确定和否定,弹个框出来就完事。
2005-01-23 15:37
快速回复:请教~~在弹出窗口时遇到问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.015518 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved