document.title of a page by JavaScriptTitle tag of the web page is one of the important tag of a html page. The keywords used inside this title tag has high relevant for search engine ranking of a site. You can read on title tag keywords at search engine friendly page here.You can read html title tag here. We will discuss here how to manage the title tag by using the document property in JavaScript. The basic syntax to manage content of the title tag is here.
You can see how the tag is changed. Now let us try one demo.
Type some text here and click the button.
Demo of managing title of a page Ok now the source code for the above demos , first the top one ( by pressing the button )
Now the code for second example ( without the submit button by using onkeyup event handler)
This article is written by plus2net.com team.
![]() | ||||
![]()
| ||||