Get Title of the same page

I

I_love_php

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

Roy Schestowitz

__/ [I_love_php] on Friday 09 September 2005 08:43 \__
I want to print the title from the same page .. is there is anyway
using HTML ? javascript or PHP ??

PHP - It is rather easy using PHP. Define some function outside your page/s,
then call it appropriately and push its output between <title> and </title>

HTML - You can have a process like a cron job regenerate the HTML file, but
otherwise it would be strictly static, i.e. one fixed title.

JavaScript - There might be a specialised method for changing titles, but I
doubt it. If it existed it would cause inconsistencies. Page titles are
fetched once at the beginning. Am I wrong in imagining or remembering NS/IE
with titles that were marquees? Was it just status bars?

Roy
 
J

Jukka K. Korpela

I_love_php said:
I want to print the title from the same page ..

Same as what? Your question makes no sense. Take a deep breath, and explain
what the problem is. Don't forget to tell what you mean by "title".
is there is anyway using HTML ?

You can't print anything in HTML.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,433
Messages
2,571,683
Members
48,796
Latest member
Greg L.

Latest Threads

Top