0

How To Forbid User Click Ctrl+N

asked 2014-02-10 00:58:02 +0800

shangbo1985 gravatar image shangbo1985
1

Is anyone know how to limit users to Ctrl+N then open new window? I tried ctrlKeys on 3.0.7 but seems not work?

delete flag offensive retag edit

Comments

show us what you already have

chillworld ( 2014-02-10 06:28:41 +0800 )edit

this question has been solved by using javascript . document.onkeydown=function(){ if ((event.ctrlKey)&&(event.keyCode==78)){ //屏蔽 Ctrl+n return false; } }

shangbo1985 ( 2014-02-10 08:29:49 +0800 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2014-02-10 09:00:18 +0800

russelme gravatar image russelme
1

The javascript really works?

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-02-10 00:58:02 +0800

Seen: 10 times

Last updated: Feb 10 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More