469,645 Members | 1,306 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,645 developers. It's quick & easy.

Get the title of the page

I want to print the title from the same page .. is there is anyway
using HTML ? javascript or PHP ??

Sep 9 '05 #1
3 1252
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
Sep 9 '05 #2
ASM
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
Sep 9 '05 #3
Thanks alot it help me

Sep 11 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Don Grover | last post: by
50 posts views Thread by MozillaCensorsMe | last post: by
3 posts views Thread by Andy Dingley | last post: by
5 posts views Thread by Maxim Izbrodin | last post: by
2 posts views Thread by Nathan Sokalski | last post: by
6 posts views Thread by Rippo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.