Let's say I wanted to make a website or series of pages where the title (or at least what appears on your browser's tab) alternates randomly each time it's loaded - just for giggles. I have a bank of random messages, for example:
(1) Donald Trump's spicy meme farm.
(2) Are you feeling it now Mr. Krabs?
(3) Put some respeck on the name.
Is there any way I can spoof a page's title during "real" browsing sessions without overwriting the actual
title that a crawler would use for SEO?
I've been loading a new message into an array and outputting it like so -
document.title = "This is the new page title.";
It seems to do what I want it to, but I have no idea what the ramifications will be as I go.
My inspiration was the question How to dynamically change a web page's title? and basically I'm trying to figure out if the top answer will hold true long-term and I won't be shooting myself in the foot if I launched a site like that.