12月的
2009-12-17 10:34
99 查看
代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>a.html文档</title>
<script language="javascript">
function openstr()
{
ReturnValue=window.showModalDialog("b.html",window,"dialogWidth=510px;dialogHeight=150px;status=no");
if(ReturnValue && ReturnValue!="")
{
oOption = document.createElement('OPTION');
oOption.text=ReturnValue;
oOption.value=ReturnValue;
document.all.txtselect.add(oOption);
}
}
</script>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<label>
<select name="txtselect" id="txtselect">
</select>
</label>
<label>
<input type="button" name="Submit" value="打开子窗口" onclick="openstr()" />
</label>
</form>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>a.html文档</title>
<script language="javascript">
function openstr()
{
ReturnValue=window.showModalDialog("b.html",window,"dialogWidth=510px;dialogHeight=150px;status=no");
if(ReturnValue && ReturnValue!="")
{
oOption = document.createElement('OPTION');
oOption.text=ReturnValue;
oOption.value=ReturnValue;
document.all.txtselect.add(oOption);
}
}
</script>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<label>
<select name="txtselect" id="txtselect">
</select>
</label>
<label>
<input type="button" name="Submit" value="打开子窗口" onclick="openstr()" />
</label>
</form>
</body>
</html>
相关文章推荐
- 12月首期期刊封面预览-感谢Shalala的制作
- 回顾微软这一年: 12月关键词 新品发布 AOL Opera
- 装机十大必备软件 12月更新集合
- 12月的日志 故事篇 消极篇 积极篇 推荐
- Ruby、Rails、Agile的启示——《程序员》杂志07年12月文章选读
- 12月第2周安全回顾 微软12月补丁发布 RSA报告称内贼难防
- Windows Embedded从入门到精通12月预告
- Ruby、Rails、Agile的启示——《程序员》杂志07年12月文章选读
- Canvas2~茜色的调色盘12月1日剧情翻译
- 12月9日晚间消息,微软曝出最新XML安全漏洞
- 电脑爱好者 2008年第23期(12月上) PDF
- 克鲁伊夫:一人12月重回巅峰 阿根廷配不上梅西(2009-10-20)
- csdn网友热议12月编程榜 C语言经典地位深入人心
- 12月的游走和成长
- 12月到了,做个标志
- 恭喜自己成为InfoQ12月《架构师》推荐编辑
- 2010浙大12月ACM题解
- SAP BO 12月认证班招生简章
- 分享Silverlight/WPF/Windows Phone/HTML5一周学习导读(12月12日-12月18日)
- 12月第3期主题资源推荐