Skip to Content
Platform.Ontology

window.name carry over

A string on the tab that survives page loads and was once used to carry data between sites.

Used to track youFiles and storageIn sessionWeb browsersWhile you use itAfter you leave the site

In one line

Can carry a short text string in the tab from one page to the next

A string on the tab that survives page loads and was once used to carry data between sites.

Browsers now clear or partition it on cross-site navigation, so trackers can no longer hand an ID from one site to the next in a tab. Same-site use for session state still works. Large strings (MBs) were a legacy storage trick.

What it can and can't do

What the user does: Nothing. It happens as you click through pages in the same tab.

It can

  • Keep a short text string while you move between pages in the tab
  • Pass it to the next page, which was once a way to carry data between sites
  • Store a tracking ID in it

It cannot

  • Pass it reliably between sites, since modern browsers now clear or limit it
  • Hold large amounts of data
  • Keep it after you close the tab

Browser support

BrowserStatusFirst versionReleasedNote
ChromeSupported12008-12-11Cleared on cross-site navigation in current versions
EdgeSupported122015-07-29None
FirefoxSupported12004-11-09None
SafariSupported12003-06-23None
Safari on iPhoneSupported12007-06-29None
Chrome on AndroidSupported182012-06-27None
Samsung InternetSupported1.02013-04-27None

How a site asks for it

APIwindow.name = value
Browser compat keysapi.Window.name
How access is grantednone
What the user seesNone
Needs a secure context (HTTPS)No
Needs a user gestureNo
How long it lastsLives with the tab's browsing context
How to take it backClear site data, browser privacy settings
Inside an iframeNot listed

Data you get

What comes back: Tab scoped string
Shape: string
How often: any time

No individual data fields. The signal is the access itself.

Technical limits

  • Cleared on cross-site top level navigation in current browsers
  • Only strings
  • No access to another tab's value

The story

What it is

A text string on your tab that survives page loads and was once used to carry data between sites.

For you

You never see it. It is a note stuck to the tab. Modern browsers clear it when you move to a new site, so it matters less than it used to.

For makers

It used to be a trick for carrying an ID from one site to another with no cookies. Browsers now wipe or isolate it across sites. It still works within one site and can carry small state.

Where you see it

TypeExampleApps
adsAn old tracker wrote an ID into the tab name so the next site could read it and link the visits.None named
securitySome login popups use it to pass a result back to the opener on the same site.None named
gamesA browser game on one site uses it to hand a score to the next page.None named
shoppingA store carries a short promo code between its own pages through the tab name.None named
analyticsA measurement script keeps a session mark in it to survive reloads.None named
developerDevelopers once used it to store data for single page tools before better options existed.None named

Risks

  • Old tracking trick
  • Mostly blocked cross site

Good uses and abuse

Legitimate uses

  • Legacy cross-window messaging

Known abuse

  • Pass identifiers between sites

Scores

ScoreValueMeaning
Sensitivity2 of 5How revealing the data is
Utility1 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bitsNot ratedRough identifying entropy, when known

History

  • 2020-11, Chrome 88: Chromium started clearing on cross-site navigation (verify milestone)

Sources

How well checked: Inferred from related behavior.

On this page