javaScript 点击button弹出不同窗口

 <html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<SCRIPT language="javascript">
 function open1(){
  window.open("ptong1.html.html");
 }
 function open2(){
open("ptong2.html.html","mywindow","toolbars=0,scrollbars=0,location=0,statusbars=0,menubars=0,resizable=0,width=320,height=380");
 }
 function open3(){
  var address=window.showModalDialog("ptong3.html.html","","dialogWidth=320px,dialogHeight=380px");
  document.myform.txtInfo.value=address;
 }
 function open4(){
   open(document.location,"","fullscrenn=yes");
 }
 function open5(){
   if(confirm("相信自己是最棒的!")){
   alert("我一定会赢!!!!");
  wanglinwanglinwanglin }
 } 
</SCRIPT>
</head>
<body>
<form name="myform" action="" method="post">
<p>
<input name="openButton1" type="button" id="openButton1" value="打开窗口" onClick="open1()">
</p>
<p>
<input name="openButton2" type="button" id="openButton2" value="打开固定窗口。没有菜单栏" onClick="open2()">
</p>
<p>
<input n type="button" value="打开模式窗口"  onClick="open3()">
<br>模式窗口的返回值:<input type="text" name="txtInfo" value="" size="40">
<p>
<input name="openButton4" type="button" id="openButton4" value="全屏" onClick="open4()">
</p>
<p>
<input name="openButton5" type="button" id="openButton5" value="打开确认窗口" onClick="open5()">
</p>
</form>
</body>
</html>

你可能感兴趣的:(JavaScript,html,function,input,action,button)