DevKB
Web Development Knowledge Base
HOME | TOP 20 | WRITE AN ARTICLE |
Sections :



RSS RSS Feed

You too, please publish your useful code snippets in any programming language :
write an article !


Valid HTML 4.0 Transitional

Plateforme d'envoi de gros fichiers en ligne
Dépannage site web
Blog infogérance
Hébergement e-mail

Olivier Ligny - - 11/03/2008 - vue 6654 fois

Lire et écrire dans le presse-papier en JavaScript

Fonctionne avec Internet Explorer uniquement.

 

// Plus d'infos : http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/clipboarddata.asp

// set the clipboard
// var x = 'Whatever you want on the clipboard';
window.clipboardData.setData('Text',x);

// get the clipboard data
window.clipboardData.getData('Text');

// clear the clipboard
window.clipboardData.clearData();

 




Write a comment :
Your name :     E-mail (optional) :

AntiSpam : what animal is visible on this picture ? :

Nos partenaires : iPhone 8 Cases & Protection