# Idle Trigger

Original URL: https://www.fireplugins.com/docs/triggers/idle/
Last updated: 2025-07-24T15:56:34+03:00

The “Idle” Trigger fires when the visitor goes idle for a specific amount of time. Below you can find how to set up a popup with “Idle” trigger, all supported settings for this trigger explained as well as how to trigger it with the JavaScript Events API.

 ## How to create an idle popup in WordPress

 To set up your popup to trigger on *Idle* edit your campaign and apply the following settings:

 - Click on *Trigger* and select **Idle**.
- Set whether the popup will fire once or unlimited times via the *Show Once Per Page* toggle.
- Set the *Idle Time* your users need to be inactive for the popup to appear

  ## Trigger Settings

 Below you can find all settings that are configurable when you choose the “on Exit” Trigger.

 | Setting | Value | Description |
| --- | --- | --- |
| Trigger | Idle | Fires when the visitor goes idle for a specific amount of time |
| Idle Time | 10 | The time in seconds the visitor must be inactive in order to trigger the popup. |
| Show Oncer Per Page | Enabled | Configure the fire frequency of this trigger per page. **Enabled**: The trigger will fire only once per page. **Disabled**: The trigger will fire whenever the event occurs on the page. |

 ## Use Cases

 ### Open popup on user activity

 A use case would be to display a popup to your users when they stay inactive for a specific amount of time.

 ## Frequently Asked Questions

 ### How to Trigger using Javascript

 Using the Javascript Events API, you can configure any popup to be triggered using the “on Idle” Trigger. Below you can find a Javascript snippet:

 ```
FireBox.onReady(function() {
    // Get box instance
    const box = FireBox.getInstance(5);

    box.bindTrigger('onIdle', {
        idle_time: 5000 // 5 seconds
        firing_frequency: 2 // Become aggressive
    });
});
```

 You can read more on the Javascript Events API documentation, [on Idle Trigger](https://www.fireplugins.com/docs/firebox/extending/firebox-javascript-api/#onidle).
