设为首页 加入收藏

TOP

JS屏幕刷新事件
2014-11-23 20:06:55 来源: 作者: 【 】 浏览:20
Tags:屏幕 刷新 事件

  you can do this with java script.


  to hide toolbar, menu ... etc., open your web application with this JS function that you can set according to your needs :


   window.open("yourZKWebPage","windowName","width=200,height=100,toolbar=no,location=no,directories=no ,status=yes,menubar=no,scrollbars=no,resizable=yes");


  And here, is an old code to intercept keyboard input, you can also customize it according to your needs :


  function keydown() {


  if ((window.event.ctrlKey) || (window.event.shiftKey) || (window.event.keyCode==18) || ((window.event.keyCode>=112) && (window.event.keyCode<=123))) {


  if (window.confirm("Shortcuts are not allowed ! \nDo you want to exit this great site " ))


  top.close();


  else {


  setTimeout("form.focus();",30);


  window.event.returnValue = false;


  }


  }


  }


  document.onkeydown= keydown //All Keys are checked


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇JavaSwing文本框输入中文弹出输入.. 下一篇Java之cookie和session

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: