Closed Thread Icon

Topic awaiting preservation: document.title (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=21649" title="Pages that link to Topic awaiting preservation: document.title (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: document.title <span class="small">(Page 1 of 1)</span>\

 
EDDII
Nervous Wreck (II) Inmate

From:
Insane since: May 2004

posted posted 05-03-2004 20:59

is there a method of changing the title of a page on an event, i think there is somthing like document.title=("")but i canot get this code to work
any help?

p.s.im not sure about this but i belive there is a way of extracting elements from the page's adress and inserting them into an automatic title eg if your page was at yoursite.com/content/help.htm the javascript would automatically put your your site > content > help can anybody help?

norm
Paranoid (IV) Inmate

From: [s]underwater[/s] under-snow in Juneau
Insane since: Sep 2002

posted posted 05-04-2004 06:20

here is what you are looking for-

code:
<html>
<head>

<title>Old Stuff</title>

<script language="Javascript">
<!--
function swap(){

document.title=' My shiny new Title';

alert(document.title);
}
//-->
</script>

</head>
<body>
<a href="javascript:swap()">Change my title.</a>
<p id="test"></p>
</body>
</html>

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 05-04-2004 15:40

Keep in mind that search engines won't spider the title correctly if you use this method. They'll only have the original document title to work with.

« BackwardsOnwards »

Show Forum Drop Down Menu