Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: Get Title of the same page

  • Subject: Re: Get Title of the same page
  • From: Roy Schestowitz <newsgroups@xxxxxxxxxxxxxxx>
  • Date: Fri, 09 Sep 2005 09:18:18 +0100
  • Newsgroups: alt.html
  • Organization: schestowitz.com / MCC / Manchester University
  • References: <1126251816.626977.280770@g43g2000cwa.googlegroups.com>
  • Reply-to: newsgroups@xxxxxxxxxxxxxxx
  • User-agent: KNode/0.7.2
__/ [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

-- 
Roy S. Schestowitz      | chmod a-r *.mbox
http://Schestowitz.com  |    SuSE Linux    |     PGP-Key: 74572E8E
  9:10am  up 15 days 11:02,  3 users,  load average: 0.83, 0.71, 0.64

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index