copy - Javascript Clean copied data from html tag -
I create a small web application that retrieves the data and copies the information to my clients' web pages. And paste the data into Excel
The problem is that the copied data contains the "html" element about the style or I do not know what the original copy / paste the user, Block the macro in the document
if they Copy and paste the data into Notepad, copy it again and paste it because it will remove unwanted data
Searching the Internet, I found that, but this is what I want
The idea is that when a user makes a copy, then the JavaScript is "clean" and the text is no more copied
You assign the text to & Lt; Textarea & gt;
can be inserted into the inner text of the tag. After this, any formatting information will be transcribed when it is copied.
& lt; Textarea rows = "4" cols = "40" & gt; Text to copy & Lt; / Text field & gt;
Comments
Post a Comment