I have tested the code & it doesn’t do exactly what I need. This is probably because I didn’t describe what I was after in enough detail.
The code above changes the ‘page title’, I however would like code that does the same but with the <title>…</title> within the <head> of the page HTML.
Any & all help is always appreciated!