back to overview More blogs

Can Websites See You Switch Tabs, Copy or Screenshot?

Questionable
Try it: switch tabs, then copy a sentence

Everything below happens in your own browser, right now. Switch tabs, highlight and copy a sentence, or open this page twice. Nothing leaves your device.

Latest events the page logged

  • nothing yet

Events the page is told about

  • Tab switched or window minimized waiting
    switch to another tab and come back
  • Window lost focus waiting
    click into another app or window
  • Cursor left the page waiting
    move the pointer out of the window
  • Text highlighted waiting
    highlight any text on this page
  • Copy or cut waiting
    press Ctrl+C or Cmd+C on the highlighted text
  • Paste waiting
    paste something into the box below
  • Print dialog waiting
    press Ctrl+P, then cancel
  • PrintScreen key waiting
    press PrintScreen (Windows keyboards)
  • Other tabs of this site waiting
    open this page in a second tab

typed: 0 · pasted: 0

Things no event reports

  • Screenshot with an OS tool invisible
  • Screen recording invisible
  • URLs and titles of your other tabs invisible
  • Which app you switched to invisible

Events are counted in memory and gone when you close the tab. Pasted text is shown only to you.

Yes, a website can see when you switch tabs, and when you copy or paste. No, it cannot see a screenshot, a screen recording or what is in your other tabs. Both halves of that answer are true, which is why every forum thread on the subject has a confident top reply followed by an equally confident one saying the opposite.

The widget on this page is a working tab switch detector, and it is the quickest way to settle the argument for your own browser. Switch to another tab, highlight and copy a sentence, press Ctrl+P and cancel, then read what it logged.

The short version: a page is told when it is hidden or loses focus, when you highlight, copy, cut, paste or print, and when your cursor leaves the window. It is not told about screenshots, screen recordings, which other sites you have open, or which app you switched to. When something does seem to catch a screenshot, it is reading a keypress or a focus change, or it is not a web page at all.

Can a website tell when you switch tabs?

Yes. When a page is hidden or shown again, the browser fires a visibilitychange event and flips document.visibilityState between visible and hidden. A separate blur event fires on the window when it loses focus. Both come with a timestamp, so the page knows that you left and for how long. Analytics scripts lean on this: a hidden tab might never come back, so that is the moment they send off what they collected with navigator.sendBeacon. Quiz platforms use the same signals. In Classic Quizzes with quiz log auditing turned on, Canvas records when a student’s quiz page loses and regains focus.

What the page does not get is a destination. Switch away in the widget and come back, and the log shows how long you were gone and nothing else. The two events also measure different things:

Four ways to look away
  • Switch to another tab
    Tab hidden: reported Focus lost: reported
  • Minimize the window
    Tab hidden: reported Focus lost: reported
  • Click into another app while the browser stays on screen
    Tab hidden: silent Focus lost: reported
  • Pick up your phone
    Tab hidden: silent Focus lost: silent
"Tab hidden" and "focus lost" are separate signals, so a page can tell a hidden tab from a window that only lost focus (on a Mac, a browser fully covered by another window can count as hidden too). It never learns where you went, and it cannot see your phone at all.

Click into a chat window while the browser stays on screen and only blur fires, because the tab is still visible. Switch tabs and both fire. That is how a site tells a hidden tab from a window that merely lost focus. Cursor movement is a separate event: mouseleave fires when the pointer exits the window, and it is what exit-intent popups use to catch you heading for the tab bar.

Bots tend to show the opposite pattern. Automated browsers often never receive focus events, or report a page that is always focused, and the live behavior monitor on our homepage tracks that pattern. It is the kind of signal behavioral scoring can weigh, the same scoring behind the CAPTCHAs you keep getting.

Can a website see your other tabs?

Only its own. A page cannot list your tabs, read their titles or URLs, or look inside them. The same-origin policy walls sites off from each other, and no web API enumerates tabs. What a page can do is talk to other tabs of the same origin in the same browser profile, through a BroadcastChannel or storage events. That is how an app notices you opened it twice and asks which one to keep. Open this page in a second tab and the “Other tabs of this site” row counts it.

The one thing a page learns about your earlier browsing is where you came from. If you followed a link, document.referrer names the site the link was on, and usually only the site name, not the full address.

Can a website see what you copy and paste?

Yes, within limits. The copy and cut events fire on the document when you press Ctrl+C or use the menu, and a handler can read exactly what you had selected. It can also swap in different text, which is how some sites append “Read more at…” to everything you copy, a courtesy nobody asked for. selectionchange fires while you drag across text, so a page knows what you highlighted before you copy anything.

Paste works the other way round. A paste into the page fires paste and hands over the clipboard text, and beforeinput reports whether text was typed or pasted, so a form can tell your 400-word answer arrived in one piece. What a page cannot do is browse your clipboard. navigator.clipboard.readText() needs your permission and a page you are actively using, so text you copied in another app stays private until you paste it somewhere.

People ask about this most for text pasted from ChatGPT. The page sees that a paste happened and how much text arrived. It is not told which app or site you copied from, though rich-text formatting can sometimes hint at it.

Can a website tell if you screenshot or screen record?

No. No browser API reports a screenshot or a recording of your screen. The operating system makes it, outside the browser, and nothing is sent to the page, whether the tool is OBS, Snipping Tool or your phone’s side buttons. What looks like screenshot detection is one of three other things, and the last is not detection at all:

  • A keyboard listener watching for PrintScreen. The widget shows the quirk: on Windows the page typically gets only the key release. On a Mac, the system swallows the Cmd+Shift+4 shortcut, so the page never sees all of it.
  • A beforeprint listener. It fires on Ctrl+P and “save as PDF”, so a page does notice that kind of copy.
  • Blocked capture. Streaming services often show a black rectangle in screenshots because the video travels through a protected path. That stops the capture without detecting it. Our Widevine DRM post covers how those protection levels work.

On phones the browser events are the same: a page is hidden when you switch apps or lock the screen. The belief that sites know about screenshots probably comes from native apps. iOS tells an app when you take a screenshot, and Android has had an official screenshot callback for apps since version 14, which is how a chat app can tell the other person. A web page in a mobile browser is not told anything.

Can Canvas or an online exam see you switch tabs?

It sees the focus loss, with timestamps, and shows the instructor that you left. It does not see where you went. That is the whole mechanism for a quiz that runs as a web page, and it is why the reports tend to say “left the page” and nothing more specific.

Proctored exams are a different class of software, and the claims get strongest there:

Who can see what
  • That you switched tabs or windows
    Web page: YesExtension: YesNative app: Partly
  • Which other sites you have open
    Web page: NoExtension: YesNative app: Partly
  • What is on your clipboard
    Web page: PartlyExtension: YesNative app: Yes
  • That you took a screenshot
    Web page: NoExtension: NoNative app: Partly
  • That you are recording the screen
    Web page: NoExtension: NoNative app: Partly
Exam software and some apps see more because they are not web pages: they run with permissions a browser never hands to a site. "Partly" means a catch. A page needs a permission prompt to read the clipboard, a native app sees window changes but not browser tabs, and phones tell apps about screenshots while desktops mostly do not.

Respondus LockDown Browser is an installed program, and Proctorio is a browser extension with permission to read your tabs. Neither is bound by what a web page can do. If an exam seems to know more than a page could, look at what it asked you to install.

Can you stop a website seeing it?

Not without breaking the page, and the usual workaround leaves its own mark. Tools that fake these events work by replacing built-ins such as the document.hidden getter, and a replaced built-in gives itself away the same way stealth patches do in bot detection. So the realistic advice is short:

  1. Assume the page sees focus, visibility and clipboard events. Do not suppress them. Real users produce the same events, and faking them is its own tell.
  2. Clear the clipboard before you paste into a site. A paste hands the page the entire clipboard text, so if you copied a password or a recovery phrase a minute ago, copy something harmless over it first.
  3. Treat a tab switch as weak evidence. It says you looked away, which is what people do all day. A quiz or exam site that penalizes it is guessing at intent.

If you run several accounts you switch windows all day, and every profile’s page logs each switch. That is fine. What gets accounts flagged is contradiction elsewhere, such as a profile whose language, clock and GPU disagree. Incogniton gives each profile its own self-consistent browser, so your window-switching looks like the ordinary noise it is. Whether a platform allows multiple accounts is set by its rules, so know them before you act.

Want to see what else a page can read without asking? The full browser scan covers the network, hardware and fingerprint side.

Incogniton Logo

Level up your privacy

Arrow