防止用户从一个字段复制+粘贴到下一个字段 [英] Prevent user copy + pasting from one field to next
问题描述
大家好,
我有一个表单,我们希望用户输入他们的电子邮件地址
两次,以确保他们输入它是正确的,就像在大多数
注册上找到的那样
我正在寻找解决问题的方法用户(和我有它)
待说)只需用鼠标突出显示电子邮件地址
(或Ctrl-A)然后按Ctrl-C,Ctrl-P(或右键单击复制) ,右键单击
paste)进入下一个字段。
如何在JavaScript中进行此操作,还是有其他解决方案?
如果由我决定,我只会用一个方框来收发电子邮件地址 - 但是
它不是,所以必须这样做两次。
谢谢
M
Hi all,
I have a form where we would like the user to input their email address
twice, to ensure they''ve typed it correctly, as is found on most
sign-ups
I''m looking for a solution to the problem where a user (and me it has
to be said) just either highlights the email address with their mouse
(or Ctrl-A) and then Ctrl-C, Ctrl-P (or right-click copy, right-click
paste) into the next field down.
How would I go about this in JavaScript, or is there another solution?
If it were up to me, I''d use just one box for the email address - but
it isn''t, so it has to be done twice.
Thanks
M
推荐答案
em******@gmail.com 写道:
大家好,
我有我们希望用户输入他们的电子邮件地址
两次,以确保他们输入正确的表格,如大多数
注册
我正在寻找一个问题的解决方案,用户(和我说它有b
)只是用他们的突出显示电子邮件地址鼠标
(或Ctrl-A)然后按Ctrl-C,Ctrl-P(或右击复制,右键单击
粘贴)到下一个字段中。
如何在JavaScript中解决这个问题,还是有其他解决方案?
Hi all,
I have a form where we would like the user to input their email address
twice, to ensure they''ve typed it correctly, as is found on most
sign-ups
I''m looking for a solution to the problem where a user (and me it has
to be said) just either highlights the email address with their mouse
(or Ctrl-A) and then Ctrl-C, Ctrl-P (or right-click copy, right-click
paste) into the next field down.
How would I go about this in JavaScript, or is there another solution?
防止复制的唯一方法&粘贴到第二个字段是没有
秒字段。 :-)
-
Rob
The only way to prevent copy & paste to a second field is to not have a
second field. :-)
--
Rob
预防的唯一方法副本&粘贴到第二个字段是没有
The only way to prevent copy & paste to a second field is to not have a
第二个字段。 :-)
second field. :-)
:) mm,我意识到这是一个非常愚蠢的问题 - 但是有没有任何
javascript解决方案。 />
:) mm, I realise it''s a pretty dumb question - but is there any
javascript solution.
em ****** @ gmail.com 写了
>
我有一个表格,我们希望用户输入他们的电子邮件地址
$ b两次$ b,以确保他们输入正确,就像大多数b / b
注册一样
我正在寻找解决方案对于用户(以及我要说b
)的问题,只需用鼠标突出显示电子邮件地址
(或Ctrl-A)然后按Ctrl- C,Ctrl-P(或右键单击复制,右键单击
粘贴)到下一个字段中。
>
I have a form where we would like the user to input their email address
twice, to ensure they''ve typed it correctly, as is found on most
sign-ups
I''m looking for a solution to the problem where a user (and me it has
to be said) just either highlights the email address with their mouse
(or Ctrl-A) and then Ctrl-C, Ctrl-P (or right-click copy, right-click
paste) into the next field down.
嗯。这个用户填写此表格是为了收到你的电子邮件
?
如果他们做错了,可以通过复制/粘贴拖放不正确的
地址甚至两次输入错误的地址然后是不是*他们的*
问题?即使你竭尽全力保护自己免受傻瓜的侵害,那么很快就会出现一个更好的傻瓜:-)
-
Richard。
Hmmm. This user is filling out this form in anticipation of receiving emails
from you?
If they do it incorrectly, by either copy/pasting drag/dropping an incorrect
address or even typing an incorrect address twice then is it not *their*
problem? Even if you do everything in your power to protect yourself against
fools then very shortly a better fool will come along :-)
--
Richard.
这篇关于防止用户从一个字段复制+粘贴到下一个字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!