jQuery in Action, 2nd edition
The moose likes HTML, CSS and JavaScript and the fly likes Accessing clipboard from browser via JavaScript Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Accessing clipboard from browser via JavaScript" Watch "Accessing clipboard from browser via JavaScript" New topic
Author

Accessing clipboard from browser via JavaScript

Mike Himstead
Ranch Hand

Joined: Apr 12, 2006
Posts: 178
Hi,

I'm looking for a way to mark several input fields on a webpage by mouse and copy the input fields' content to clipboard. Is this possible at all? The only usable technique I have in mind is JavaScript, but I don't know if can access the operating system's clipboard from within a browser. Any ideas or hints are appreciated.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
In the old days you were able to do this, but with today's security minded folks, it is not possible without browser settings to be changed.

People who do it use Flash [http://code.google.com/p/zeroclipboard/], but Flash is starting to restrict it too.

Eric
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Accessing clipboard from browser via JavaScript
 
Similar Threads
How to copy HTML page content to clipborad
Happy New Year! Welcome to our new forums!
Copy content to clipboard
How to copy a image to clipboard in FIREFOX browser using javascript?
copy to clipboard is not working