x
 
<!DOCTYPE html>
<html>
<body>
<h3>��ʾ��η��� Dialog Ԫ��</h3>
<p>�����ť�����������ı��� DIALOG Ԫ�ء�</p>
<button onclick="myFunction()">��һ��</button>
<p><b>ע�ͣ�</b>Ŀǰֻ�� Chrome Canary �� Safari 6 ֧�� <dialog> Ԫ�ء�</p>
<script>
function myFunction()
{
var x = document.createElement("DIALOG");
var t = document.createTextNode("This is an open dialog window");
x.setAttribute("open", "open");
x.appendChild(t);
document.body.appendChild(x);
}
</script>
</body>
</html>