In some applications, sometimes when we submit important information such as the Form Content (password), to ensure security, we need to prevent some copy, cut, and paste events, today I made a simple example about blocking copy, cut, and paste events:
CopyCodeThe Code is as follows:
Content directory: Find file lookup grep text Search xargs command line parameter conversion sort sort Uniq eliminate duplicate rows with TR convert cut by column split text paste by column stitching text WC statistic lines and characters tool sed text substitution benefits The lines, words, and characters in the iteration file for the AWK Data flow processing tool
This article describes the most commonly u
in a place to paste in. Say:1. v+ move cursor to select text.2, y can copy the selected text3, p can be pastedCopy one line: yyCopy the current cursor position to the end of the line: y$Copy the current cursor position to the beginning of the line: y^Copy three lines: 3yy, that is, from the current cursor + the next two lines.Cut text:You can press Y to copy after selecting the text with V, and then press p to pa
Ext: http://www.cnblogs.com/JuneZhang/archive/2011/05/20/2051973.html
There are two main ways to implement this menu:
First: implemented by sending keystrokes to the application.
First focus to the currently active RichTextBox, and then by sending the keystroke command to implement the Operation function
Richtextbox1.focus ();
Sendkeys.send ("^a")/Select All
Sendkeys.send ("^c");/copy
Sendkeys.send ("^x");//
工欲善其事, its prerequisiteIn a Web page developed by ASP, it is sometimes necessary to prevent users from pasting the copied password and to prevent the user from copying the article directly into the text box. The way to do this is to write code that prohibits pasting text directly where the control is restricted. However, this is not very convenient, if a page has 5 TextBox control, this time must be separate for each control is written to prohibit copy, past
Reprinted from: http://www.cnblogs.com/luosongchao/p/3193153.htmlProblem Description:Select the specified character in vim to copy/cut/pasteSelect:1, Normal mode--v+hjkl to choose.2, the Visual Line mode button V can enter only to select the rowAfter pressing V, enter visual line mode and use the J/K key to select one or more rows3. Visual block mode, press CTRL + V to enterAfter pressing CTRL + V, enter the visual block mode and use the J/K/H/L key t
, pasteX: Delete one character forwardX: Remove one character backwardsNX: Remove n characters backwardsDD: Which row of the delete/pre-tangent cursorNDD: Delete/Pre-tangent the line after row n rowsYY: The copy cursor is in the rowSmall p: Pastes the copied or pasted content from the line where the cursor is locatedLarge p: Pastes the copied or pasted content from the line where the cursor is locatedNyy: Starts at the line where the cursor is located, copying the n rows downU: Restore previous
In some applications, sometimes when we submit form content such as (password) important information, in order to be secure, we need to block some copy clipping and pasting events, and today we have a simple example to prevent copying cut and paste events:
Copy Code code as follows:
Summary:Recently on the project to achieve a Click Button Copy link function, just started to find some information, find a few plug-ins, Zeroclipboard is through the flash implementation of the replication function, with more and more proposals to abolish flash, so I would like to be able to achieve copy cutting by JS?Address: Https://github.com/baixuexiyang/clipBoard.jsMethod:Copyvar new ClipBoard (document.getElementById (' Data '), { function() { }, function () { return docu
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.