Get the title of the page

Discussion in 'Javascript' started by I_love_php, Sep 9, 2005.

  1. I_love_php

    I_love_php Guest

    I want to print the title from the same page .. is there is anyway
    using HTML ? javascript or PHP ??
    I_love_php, Sep 9, 2005
    #1
    1. Advertising

  2. I_love_php

    ASM Guest

    Martin Kurz wrote:
    > I_love_php schrieb:
    >
    >>I want to print the title from the same page .. is there is anyway
    >>using HTML ? javascript or PHP ??
    >>

    >
    >
    > Not so hard at all: you can find the title by
    >
    > document.getElementsByTagName("title")[0].text


    much more easier (with javascript)

    document.write(document.title);

    --
    Stephane Moriaux et son [moins] vieux Mac
    ASM, Sep 9, 2005
    #2
    1. Advertising

  3. I_love_php

    I_love_php Guest

    Thanks alot it help me
    I_love_php, Sep 11, 2005
    #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:
    434
    Steve C. Orr, MCSD
    Aug 10, 2003
  2. Replies:
    0
    Views:
    494
  3. Replies:
    1
    Views:
    513
    David
    Apr 24, 2007
  4. soonic
    Replies:
    11
    Views:
    1,753
    soonic
    Jul 27, 2011
  5. Russell
    Replies:
    2
    Views:
    264
    Russell
    Sep 13, 2004
Loading...

Share This Page