This is a simple bit of code, but it’s something that may come up depending on the development you are doing.
For example, in Business Catalyst the Tell-A-Friend function allows you to email a page to someone and then redirects to a confirmation page when done. Unfortunately, that page shows your account name as the page title (not good).Â
So, you can get around this easily with this Javascript.
Goto Admin–>Customize System Messages and edit the HTML on the Refer-A-Friend Confirmation Page. Add this at the top:
<script language=”javascript”>document.title = “The new title goes here.”;</script>
Test it out. This can be used on any page, but definitely use it as last resort because of its effect on SEO.