4

Is there a way at all of altering the clipboard of the user via JavaScript?

I want it that they click a given point on a map, and it adds the coordinates of the position to their clipboard.

I do however assume that this is not possible for JavaScript to achieve.

1

3 Answers 3

10

You could try using the zeroclipboard library, which involves placing an invisible flash element on the page to do the actual copy of text to the clipboard.

Sign up to request clarification or add additional context in comments.

Comments

2

It is in Internet Explorer, but not in other browsers although support can be hacked together in other browsers by inserting a Flash file each time you want to do a copy. Not very useful I would say, as it imposes usability drawbacks as well.

1 Comment

It's not possible anymore in flash10, as it's a major security flow.
1

If I remember correctly it is possible in the Internet Explorer (maybe the site must be in the "trusted" zone) but not in Firefox or Opera.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.