Home > front end >  The cursor in the edit box impression notes, how to get the first title
The cursor in the edit box impression notes, how to get the first title

Time:03-10

Notes editing part is also an element of the document, the document. The title is "the company", is not the title of the page "impression notes web edition", how to get the page title first

Used to find the title element, edit box after loading or show "the company"

 var tit=document. QuerySelector (" title ") 
The console. The log (tit. InnerHTML)


CodePudding user response:

Top. Document. QuerySelector
  • Related