Dynamic Page Titles

Here’s another HTML trick stolen from the Code-Mistress herself, Stacy at Sekimori. This changes the HTML document’s page title with every refresh of the page. You can use whatever text you like — just don’t make it too long. You should always include your domain name so people will know where they are! I’ve included my own coding here so you could see how to put it all together. Does anyone recognize the movie these quotes came from?

Note: Because the display of the code was wreaking havoc (only in Opera, apparently), I’ve decided to place a link to the code, which is now in a text file. Once the link loads (it will be a blank page), just View Source and cut and paste.

title_switcher.txt

Leave a Comment

GDPR Agreement