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

Get the title of the page

P: n/a
I want to print the title from the same page .. is there is anyway
using HTML ? javascript or PHP ??

Sep 9 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
Thanks alot it help me

Sep 11 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.