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