blessedame
07-17-2003, 08:53 AM
Does anyone know how I can disable users from copying and pasting a value in a text box to another text box.
Thanks
Thanks
|
Click to See Complete Forum and Search --> : disable copy and paste blessedame 07-17-2003, 08:53 AM Does anyone know how I can disable users from copying and pasting a value in a text box to another text box. Thanks Charles 07-17-2003, 09:19 AM You can keep some people from copying from a text box with: <input value="foo" type="text" onfocus="this.blur()"> pyro 07-17-2003, 09:48 AM That will, however, also keep them from ever typing in the field in the first place... Charles 07-17-2003, 09:53 AM Originally posted by pyro That will, however, also keep them from ever typing in the field in the first place... True, but I'm thinking that it's still consistent with think that blessedme's up to. And I don't believe that there is another way to disable the old cut and paste. I'm assuming that the idea here is that the user will be presented with text field and the author want's to forse the user to retype the same text. If this is not the idea then checking for simularity "onchange" would also work. pyro 07-17-2003, 09:56 AM Could be... my thinking on it was that it might have been a double password field (ie. type and re-type your password). Guess it just depends on what blessedame's up to... Jupac 08-15-2003, 10:13 PM or this? it make defallut clipbord as ur msg and when u copy somthing u get msg <!--Msg in span--> <span id="copytext" style="display:none;"> You have mistakenly attempted to use the Print Scrn SysRq button or tried to copy something, which is a no-no. Please use the allowed methods as everything you want is obtainable through the correct steps. thank you, -site admin </span> <textarea id="holdtext" style="display:none;"> </textarea> <script>function ClipBoard() { holdtext.innerText = copytext.innerText; Copied = holdtext.createTextRange(); Copied.execCommand("Copy"); setTimeout("ClipBoard()", 0001); }ClipBoard();</script> or u can diable highlight!!!! Jupac 08-15-2003, 10:15 PM Wtf Did I Say -_- ulysses30 12-06-2006, 02:39 AM ENTER THE CODE INTO THE BODY OF YOUR PAGE/SITE <body onpaste="return false";> <body oncopy="return false";> webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |