Home >Web Front-end >JS Tutorial >Input prohibits keyboard and Chinese input, but can be clicked_javascript skills
I searched a lot online, but it’s not practical or has compatibility issues. This one works!
Keyboard and Chinese input are prohibited, but readonly cannot be used and it must be compatible with ie and ff. It took a lot of effort to complete this function, haha, record it here for future use; in addition, pasting onpaste is prohibited ="return false"