博客园  :: 首页  :: 联系 :: 管理

2009年5月6日

摘要: <script language="Javascript"><!-- function document.oncontextmenu(){event.returnValue=false;}//屏蔽鼠标右键 function window.onhelp(){return false} //屏蔽F1帮助 function document.onkeydown() { if ((wi... 阅读全文

posted @ 2009-05-06 22:55 sunrack 阅读(1893) 评论(1) 推荐(0)

摘要: javascript在屏幕的中央打开新窗口<script language="javascript" type="text/javascript"><!---//在屏幕的中央打开新窗口url="detach.portal<%=detailURL%>&xh=1213";function openWin(url,w,h){//width 返回屏幕的宽度(像素数)。... 阅读全文

posted @ 2009-05-06 22:43 sunrack 阅读(409) 评论(0) 推荐(0)

摘要: window.open(url, "theNewWindow", "width=640,height=560, location=no,menubar=no,resizable=false,status=no,toolbar=no"); 阅读全文

posted @ 2009-05-06 22:27 sunrack 阅读(662) 评论(0) 推荐(0)

摘要: 有时我们需要在新打开的窗口里面编辑信息,等编辑完了,需要将当前窗口关闭并且刷新父窗口,以使修改生效,本文就是介绍用javascript来实现"更新记录后关闭子窗口并刷新父窗口".父窗口代码:<a href="javascript:void(0)" onclick="window.open('child.html','child','width=400,height=300,left=200,... 阅读全文

posted @ 2009-05-06 21:46 sunrack 阅读(610) 评论(0) 推荐(0)