Untested and out of the top of my head:
<p>my text <span id="mytitle">my title</span> more of my text</p>
<script type="text/javascript">
document.title = document.getElementById('mytitle').innerHTML;
</script>
(it might be window.title I forget)
Please note that using titles like this, won't get them indexed by google.
Greetings,
Woolly's weblab
http://www.woollymittens.nl/content/weblab/
"chris" <lootads (AT) yahoo (DOT) co.uk> wrote
Quote:
Hi,
I need some dhtml/javascript/asp which I can use to put between some
words within the body of a page which takes these words and places
them inbetween the title tags.
The idea is when an editor changes these tagged words, it will also
change in the title tags of a page.
Any ideas??
CF |