From: web.dev on

Nospam wrote:
> or how to property set document.referrer, would something like this work:
> document.referrer == 'http://www.example.com;

1. The referrer property is a read-only value.
2. You're doing an equality comparison.
3. Even if referrer wasn't read-only, and you were doing an assignment,
then you have an unterminated string.