What does document.title do | SoloLearn: Learn to code for FREE!

0

What does document.title do

4/9/2021 10:57:38 PM

Maxwell

2 Answers

New Answer

+6

Accesses the value between the title tags <head> <title>Gets this text</title> </head> Try to console.log(document.title) Note: Make sure the page has loaded before you try to access the DOM. You can also set the value using; document.title = "Page Title";

+5

https://code.sololearn.com/WK7Rd020W4BN/?ref=app