Mouseout and Page Scroll Events

There are two user action events that are built into the web SDK that can be availed of on your site. The first is for a mouseout event and the second is for when the page is scrolled down by more than 600px.

Mouseout

To register a callback for a mouseout event, just call the following function, passing in the JavaScript function that you want to run on when an event happens:

xtremepush('on', 'mouseout', function () {
    console.log('Mouseout received')
});

This function should be called either below the initialisation of our web SDK on your page or when the page has loaded.

Scroll

To register a callback for a scroll event, just call the following function below the initialisation of our web SDK on your page, passing in the JavaScript function that you want to run on when an event happens:

xtremepush('on', 'scroll', function () {
    console.log('Scroll received')
});

This function should be called either below the initialisation of our web SDK on your page or when the page has loaded.

Have more questions? Submit a request

0 Comments

Article is closed for comments.