|
Posted by Roy Schestowitz on 09/09/05 11:18
__/ [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
[Back to original message]
|