> For the complete documentation index, see [llms.txt](https://anticode.gitbook.io/templates/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://anticode.gitbook.io/templates/plugins/bubble-prevent-duplicate-windows-tabs-plugin.md).

# Bubble - Prevent Duplicate Windows/Tabs Plugin

### Overview

This plugin allows you detect if a user has opened more than one window/tab within your website at the same time. Once a new tab/window is detected, an event is triggered. You can show a popup, alert or block access to your page's content.You can also choose whether or not the window/tab should automatically close and set the delay.

For a demo of this plugin please visit: <https://duplicatewindow.bubbleapps.io/>

### Instructions

Simply drag the duplicate window element onto the page you want the effect to apply. If a duplicate window/tab is detected, the "A duplicate tab has been detected" event is triggered. You can access this event within a workflow and show an alert, popup etc. Furthermore, you can also specify if the window/tab should auto-close once a duplicate window/tab has been detected. If you check this box, you can also specify the delay in milliseconds until the window/tab is closed.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://anticode.gitbook.io/templates/plugins/bubble-prevent-duplicate-windows-tabs-plugin.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
