simple_navigator_clipboard_keydown.html (271B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <script> 6 function onLoad() { 7 document.addEventListener("keydown", function() { 8 navigator.clipboard.readText(); 9 }); 10 } 11 </script> 12 </head> 13 <body onload="onLoad()"> 14 </body> 15 </html>