I want that when page load it auto copy the copy to clipboard
Please check the code not working
<body onload=attachFlash('ppp')>
function attachFlash(code) {
var clip = new ZeroClipboard.Client();
var myTextToCopy = code;
clip.setText(myTextToCopy);
clip.glue(code);
}