1 2 3 4 5 6 7 8 9 10 11 12 13
<!DOCTYPE html> <html> <body> <iframe></iframe> <script> window[0].addEventListener('copy', (e) => { document.querySelector('iframe').remove(); // Finish asynchronously, to make sure the renderer doesn't crash. window.setTimeout(() => { document.title = 'done'; }); }); </script> </body> </html>