How to retrieve TITLE value of a html page.

Discussion in 'Javascript' started by Jaans, Aug 7, 2006.

  1. Jaans

    Jaans Guest

    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
     
    Jaans, Aug 7, 2006
    #1
    1. Advertising

  2. Jaans

    RobG Guest

    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-HTML/html.html#ID-18446827 >


    --
    Rob
     
    RobG, Aug 7, 2006
    #2
    1. Advertising

  3. Jaans

    Jaans Guest

    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-HTML/html.html#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.
     
    Jaans, Aug 7, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andreas Klemt
    Replies:
    1
    Views:
    466
    Steve C. Orr, MCSD
    Aug 10, 2003
  2. Replies:
    0
    Views:
    542
  3. Replies:
    1
    Views:
    558
    David
    Apr 24, 2007
  4. soonic
    Replies:
    11
    Views:
    1,783
    soonic
    Jul 27, 2011
  5. Russell
    Replies:
    2
    Views:
    290
    Russell
    Sep 13, 2004
Loading...

Share This Page