firefox悄悄加上 Modal Dialog 支持

大家都知道在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>
This entry was posted in CSS/XHTML and tagged , . Bookmark the permalink.

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

*
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