Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. javascript: Copy the selected text to notepad automatically

javascript: Copy the selected text to notepad automatically

Scheduled Pinned Locked Moved Web Development
javascripthelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jmohan
    wrote on last edited by
    #1

    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

    P S 2 Replies Last reply
    0
    • J jmohan

      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

      P Offline
      P Offline
      Perspx
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • J jmohan

        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

        S Offline
        S Offline
        Shog9 0
        wrote on last edited by
        #3

        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.'

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups