Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > How to retrieve TITLE value of a html page.

Reply
Thread Tools

How to retrieve TITLE value of a html page.

 
 
Jaans
Guest
Posts: n/a
 
      08-07-2006
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

 
Reply With Quote
 
 
 
 
RobG
Guest
Posts: n/a
 
      08-07-2006
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
 
Reply With Quote
 
 
 
 
Jaans
Guest
Posts: n/a
 
      08-07-2006

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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
I'm looking for html cleaner. Example : convert <h1><span><font>my title</font></span></h1> => <h1>my title</h1>… Stéphane Klein Python 2 03-30-2010 12:35 AM
Re: I'm looking for html cleaner. Example : convert <h1><span><font>my title</font></span></h1> => <h1>my title</h1>… Stefan Behnel Python 0 03-29-2010 08:14 PM
Does anyone know the title of the first ever DVD title released? (UK/US) Mikey DVD Video 12 09-23-2006 07:14 PM
Fastest way to get a the string between <title> </title> Andreas Klemt ASP .Net 1 08-10-2003 01:58 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57