Change the content displayed in the Title element

zhaozj2021-02-16  65

Want to practice a setInterval exercise, just choose an object, use Title to do, or operate according to the previous operation

The element and the like do not write content with the Innertext property, only read, and if you access the title element in DOM, there is no child element of TextNode, so you want CreateTextNode, you will go up, but the result is not. So I opened MSDN, halo, ~~ The original title element does not support the appendchild method, and there is a sentence in Innertext annotation: You can change the value of the title element use the document.title property. After reading the information, you must carefully .