Thread:Project:Support desk/JavaScript in page title?/reply (3)

You should insert it manipulating the DOM with JavaScript, and you can place that JavaScript anywhere on the page. Scripts don't display its contents in the place where they're inserted.

See Manual:Interface/JavaScript for places to put scripts.