 
  Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to work with document.title in JavaScript?
Use the document.title property to set the title of the document in JavaScript.
Example
You can try to run the following code to implement document.title property in JavaScript.
<!DOCTYPE html> <html>    <head>       <title>Demo Title</title>    </head>    <body>       <script>          var x = document.title;          document.write("Our Title: "+x);       </script>    </body> </html>Advertisements
 