js dynamically modify the browser title

Out of Focus script tag based browsing function box be eligible for coke operation
(operating under the label simply placed under the head of the HTML file you can)
<Script> 
  window.onfocus = function () { 
    document.title = ' back to normal, hee ~ ' ; 
  }; 
  window.onblur = function () { 
    document.title = ' come home page collapsed ~ ' ; 
  };
 </ script>

 

Guess you like

Origin www.cnblogs.com/Front-endGraph/p/11346245.html