日期:2014-05-16 浏览次数:20425 次
<input type=button onclick="window.showModalDialog('b.htm',window)" value=http://blog.soso.com/qz.q/"showModalDialog open"/> <input type=button onclick="window.showModelessDialog('b.htm',window)" value=http://blog.soso.com/qz.q/"open"/>
<input type=button value=http://blog.soso.com/qz.q/refresh onclick="a()"/> <script language="javascript" type="text/javascript"> function a() { window.parent.dialogArguments.document.execCommand('Refresh'); } </script>
<script language="javascript" type="text/javascript"> function get() { window.parent.dialogArguments.document.execCommand('Refresh'); } function shut() { window.parent.dialogArguments.document.execCommand('Refresh'); window.close(); } </script> <input type=button value=http://blog.soso.com/qz.q/提交 onclick="get()"/> <input type=button value=http://blog.soso.com/qz.q/关闭 onclick="shut()"/>
<input type="button" name="print" value=http://blog.soso.com/qz.q/"列印窗口" onclick="print()">
<input type="button" name="back" value=http://blog.soso.com/qz.q/"返回上页" onclick="history.back()">
<input type="button" name="open" value=http://blog.soso.com/qz.q/"开新窗口" onclick="window.open('开新窗口中载入的文件','窗口名称','top=0,left=200,resizable=yes,status=yes,scrollbars=yes')">
<input type="button" name="slef" value=http://blog.soso.com/qz.q/"刷新本页" onclick="document.location.reload()">
<input type="button" name="par" value=http://blog.soso.com/qz.q/"刷新父页" onclick="opener.location.reload()">
<input type="button" name="parIt" value=http://blog.soso.com/qz.q/"刷新父页另一框架" onclick="opener.parent.mainFrame.location.reload()">
<input type="button" name="parFrame" value=http://blog.soso.com/qz.q/"刷新另一框架" onclick="parent.mainFrame.location.reload()">
<script> if (confirm("您确定吗?")) alert("您点的是确定!"); else alert("您点的是取消!"); </script>
<tr bgcolor="ecf2f9" onMouseOut="style.backgroundColor='ecf2f9';" onMouseOver="style.backgroundColor='#FFFFCC';">
<script> function datacheck() { var msg = ""; //这个是用于显示错误提示 var obj = ""; //这个是记录错误的输入值,用于出错时返加focus with(document.form1){ //共用对象,本页面的form1 if (name.value=http://blog.soso.com/qz.q/="") { msg = "\n name的值不能为空"; obj = "name"; } if (partno.value.length!=8) { msg = "\n partno的长度应该是8位"; obj = "partno"; } //================================================================= if(msg!="") { mobj = eval(obj); mobj.focus(); alert("输入错误\n"+msg);