Without further ado, I will just post the code for you. The specific code is as follows:
<!DOCTYPE html> <html> <head> <meta charset="UTF-"> <title>这里是网站标题</title> </head> <body> <script type="text/javascript"> document.body.onfocus = function(){ document.title = '这里是网站标题'; }; document.body.onblur = function(){ document.title = 'i miss you'; }; </script> </body> </html>
The above code is the JavaScript implementation of webpage cutout and website title change code. I hope it will be helpful to everyone!