首页 > CSS/XHTML > firefox悄悄加上 Modal Dialog 支持

firefox悄悄加上 Modal Dialog 支持

2008年11月21日
962 views 评论 发表评论

大家都知道在firefox 1.1起,取消了对Modal Dialog 的支持.但今天和同事在整理一个旧项目的时候,无意中发现,Modal Dialog 在Firefox(3.0.4)中居然又支持了.不知道其他3.x的版本支不支持.
开始不怎么相信,以为只是windows下的firefox才支持.但在ubuntu下面测试居然也通过了.
未查到是基于基于什么原因,官方2.x – 3.0.x 所有版本的release note都看过来了,但也未对.Modal Dialog 作说明.

大家可以在自己的firefox中测试一下下面的代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>modal_dialog</title>
<script type="text/javascript">
function showDialog()
{
	var url = "http://fatjames.extjs.org.cn";
	window.showModalDialog(url,'write',"dialogWidth:500px;dialogHeight:300px");
}
</script>
</head>
 
<body>
<label>
<input type="submit" name="button" id="button" onclick="showDialog();" value="Click here" />
</label>
</body>
</html>

CSS/XHTML ,

  1. 目前还没有任何评论.
  1. 目前还没有任何 trackbacks 和 pingbacks.

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word