---
title: "Boxever.triggerExperiences()"
slug: "bx-triggerexperiences"
abstract: "Describes the triggerExperiences() function in the Boxever JavaScript Library (Sitecore CDP Stream API)."
---
# Boxever.triggerExperiences()

The `triggerExperiences()` function reruns every Web Experience and Web Experiment that is live in Sitecore Personalize.

When the Boxever JavaScript Library loads, it runs every live Web Experience and Web Experiment once. The experiences and experiments do not automatically run again on the same page. You can manually rerun them in response to user input, for example, after the user fills out a form field or clicks a button.

## Parameters

none

## Return value

undefined

## Example

Rerun every live Web Experience and Web Experiment if the user enters a search string that includes the word *shoe*:

```javascript
searchBarInput.addEventListener("keyup", event => {
    if (event.target.value.includes("shoe")) {
        Boxever.triggerExperiences();
    }
});

```