Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>You could disable <code>ctrl+v</code> combination and <code>right click</code> as well.</strong></p> <p>for IE, you may tap into following event handlers:</p> <pre><code>onpaste="return false;" oncut="return false;" oncontextmenu="return false;" oncopy="return false;". </code></pre> <p>Here is a workaround for all browsers:</p> <pre><code>function noCTRL(e) { var code = (document.all) ? event.keyCode : e.which; var ctrl = (document.all) ? event.ctrlKey : e.modifiers &amp; Event.CONTROL_MASK; var msg = "Sorry, this functionality is disabled."; if (document.all) { if (ctrl &amp;&amp; code == 86) { //CTRL+V alert(msg); window.event.returnValue = false; } else if (ctrl &amp;&amp; code == 67) { //CTRL+C (Copy) alert(msg); window.event.returnValue = false; } } else { if (ctrl == 2) { //CTRL key alert(msg); return false; } } } </code></pre> <p>In HTML section, your fields would look like:</p> <pre><code>Email :&lt;input name="email" type="text" value=""/&gt;&lt;br/&gt; Password :&lt;input name="password" type="password" value=""/&gt;&lt;br/&gt; Confirm Email :&lt;input name="email" type="text" value="" onkeydown="return noCTRL(event)"/&gt; Confirm Password :&lt;input name="password" type="password" value="" onkeydown="return noCTRL(event)"/&gt; </code></pre> <p>I don't think user can copy password fields if input type is <code>password</code></p> <p>Hope this helps.</p> <p><strong>Note:</strong> </p> <ol> <li>Disabling JavaScript in browser will let users do whatever they want</li> <li>Always Keep this in mind: respect user's freedom. </li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload