You can use the HTML5 clipboard api
http://www.htmlgoodies.com/html5/other/working-with-clipboard-apis-in-html5-web-apps.html#fbid=eh9tM7GHJWF
But do note that not all browsers fully support it as of now: http://caniuse.com/#feat=clipboard
More Related Contents:
- how do i submit message to my email by html or js?
- JS hide function error
- Create a new div element when button is clicked JavaScript [closed]
- how to view the answer of a js function in a html input? [duplicate]
- How to implement something like this GIF that using mouse drag and select items
- Javascript counting all the characters from a HTML document
- Submit form without page reloading
- Submit two forms with one button
- Is there a spec that the id of elements should be made global variable?
- How can I change div content with JavaScript?
- Double quote in JavaScript string
- How can I capture the right-click event in JavaScript? [duplicate]
- Selecting all text in HTML text input when clicked
- Is it possible to trap CORS errors?
- Infinity Loop Slider Concepts
- Why does Jquery only affect the first div element? [duplicate]
- DOMException: Failed to load because no supported source was found
- Where’s the connection between index.html and index.js in a Create-React-App application?
- how to exchange variables between two HTML pages?
- clearRect not working
- why is jQuery click event firing multiple times
- Sharing websocket across browser tabs?
- How to get the JSON with duplicate keys completely in javascript
- Open new window without focus on it [duplicate]
- window.getSelection return html [duplicate]
- Body animation isn’t smooth
- How can I make an image carousel with only CSS?
- Read a file synchronously in Javascript
- Pass element ID to Javascript function
- How can I reorder elements with JavaScript?