TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Why can't I copy and paste into HTML fields?

1 pointsby danmccormabout 9 years ago
I've noticed a trend to prevent copying and pasting into HTML fields which I find quite irrational. Doesn't accuracy increase if I'm allowed to copy and paste something? Presently, I'm prevented from copying a checking account number into a field, so I have to type it out by hand, which is much more error-prone. Does anyone know why sites do this?

1 comment

lsiunsuexabout 9 years ago
1 reason I can think of is when copying and pasting - the text formatting used from where you copied the string from can come over with the text. So your not pasting in just a number but potentially html &#x2F; css with it.<p>For obvious reasons, this could be a problem and instead of stripping the html &#x2F; css &#x2F; garbage - it&#x27;s easier to just prevent the action entirely.