javascript: Copy the selected text to notepad automatically
-
Hi everyone, I need to copy the selected text(in website) to Notepad automatically. The details as follows: (1) I select the particular paragraph or sentence or word in the website. (2) Then, I press the Ctrl+C (3) When, I open the Notepad or msword or wordpad, the copied text need to pasted in the notepad or msword or wordpad automatically. I need the javascript to do this. please help me. Thanks in Advance, J. Mohan
J. Mohan
-
Hi everyone, I need to copy the selected text(in website) to Notepad automatically. The details as follows: (1) I select the particular paragraph or sentence or word in the website. (2) Then, I press the Ctrl+C (3) When, I open the Notepad or msword or wordpad, the copied text need to pasted in the notepad or msword or wordpad automatically. I need the javascript to do this. please help me. Thanks in Advance, J. Mohan
J. Mohan
I strongly doubt that is possible even with an add-on like ActiveX as it compromises security.. Definitely not achievable in Javascript, but you can copy text to the clipboard with Javascript; take a look at this article, which may be of use :) Regards, --Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia Introduction to Object-Oriented JavaScript
-
Hi everyone, I need to copy the selected text(in website) to Notepad automatically. The details as follows: (1) I select the particular paragraph or sentence or word in the website. (2) Then, I press the Ctrl+C (3) When, I open the Notepad or msword or wordpad, the copied text need to pasted in the notepad or msword or wordpad automatically. I need the javascript to do this. please help me. Thanks in Advance, J. Mohan
J. Mohan
jmohan wrote:
(3) When, I open the Notepad or msword or wordpad, the copied text need to pasted in the notepad or msword or wordpad automatically. I need the javascript to do this.
I shudder to think of what would make you want such a thing, but no - you can't do that with Javascript. If you could do that with JS, you could also paste commands into a command window should the user open one, or into the Run box if that was opened. Security would be a joke.
Citizen 20.1.01
'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'