If the domain is someone else's - it was only through injection/superstructure/private browser, for example, using GreaseMonkey.
If Your domain:
1. you can pass in GET parameters (or using the anchor link #) flag to activate a script
2. use LocalStorage
3. to use the installation of cookies
4. to use a preset flag in a server session via ajax before moving on.