wood burning stoves 2.0*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Accessing clipboard from browser via JavaScript" Watch "Accessing clipboard from browser via JavaScript" New topic

Accessing clipboard from browser via JavaScript

Mike Himstead
Ranch Hand

Joined: Apr 12, 2006
Posts: 178

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

Joined: Nov 08, 2001
Posts: 15376
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.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
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 to clipboard is not working
How to copy a image to clipboard in FIREFOX browser using javascript?
Copy content to clipboard