By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,910 Members | 1,077 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,910 IT Pros & Developers. It's quick & easy.

How to retrieve TITLE value of a html page.

P: n/a
hi,
I need to retrieve the value of the tag TITLE, which gives the title of
the html page using Java script. could anybody help me out in this reg.

Thanks in advance,
JL

Aug 7 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Jaans wrote:
hi,
I need to retrieve the value of the tag TITLE, which gives the title of
the html page using Java script. could anybody help me out in this reg.
The title property of the document element should do the trick:

document.title

<URL: http://www.w3.org/TR/DOM-Level-2-HTM...ml#ID-18446827 >
--
Rob
Aug 7 '06 #2

P: n/a

RobG wrote:
Jaans wrote:
hi,
I need to retrieve the value of the tag TITLE, which gives the title of
the html page using Java script. could anybody help me out in this reg.

The title property of the document element should do the trick:

document.title

<URL: http://www.w3.org/TR/DOM-Level-2-HTM...ml#ID-18446827 >
--
Rob
THANKS A LOT Rob. Looks so simple, but i wasted lots of time look for
it :(
Atlast, i got it from you. thanks very much.

Aug 7 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.