• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 444
  • Last Modified:

Javascript copy text to clipboard (usually from a form) to work on ALL browsers (ie. Mozilla/Firefox, MSIE, Safari/Konqueror, Opera)

Does anyone know of code which can copy the contents of a form for example or some pre-determined text from a js variable to the operating systems clipboard?

It needs to work in all major browsers (see title) under all major operating systems. (ie. Windows, Linux (KDE/Gnome), Mac OS 9/10)
0
MarkCC
Asked:
MarkCC
1 Solution
 
ZylochCommented:
Hi MarkCC,

http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20233392.html

Usually I would not just link, but even though part of the code is in Dutch, it not only has the common way of doing it for IE, but also one for Mozilla! These are the two major browsers right now. You're not going to get much better. Props to mplungian :)

Btw, don't just look at the accepted answer. Scroll down a bit until you come to the dutch commented one.

Regards,
Zyloch
0
 
MarkCCAuthor Commented:
I already have code that works in IE and Mozilla, I however need code that also works in Safari.
0
 
ZylochCommented:
I do not believe it is possible in Safari at the moment, although I am waiting to be corrected (hopefully)
0
 
Cem TürkSenior Software EngineerCommented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup topic area:
    PAQ - No Refund

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

cem_turk
EE Cleanup Volunteer
0
 
CetusMODCommented:
PAQed with no points refunded (of 125)

CetusMOD
Community Support Moderator
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now