--- title: "CoBrowse Session Event Overview" slug: "cobrowse-events" description: "This article outlines the events that happen when CoBrowse sessions are started or stopped. " updated: 2020-07-06T23:26:51Z published: 2020-07-06T23:26:51Z canonical: "docs.screenmeet.com/cobrowse-events" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.screenmeet.com/llms.txt > Use this file to discover all available pages before exploring further. # Events ## Session Events ScreenMeet Cobrowse has browser events that it emits when starting or stopping a Cobrowse session. These can be used by host websites to keep track of the session, or log analytics data, or enable or disable relevant user interface elements, or any other use which the developers can use it. These event triggers on each window, iframe, and page load which participates in the Cobrowse session. It is recommended though not strictly necessary to make handling these events idempotent as they will trigger at multiple times per session. They do include their session id on `event.detail.id` so that you may correlate the events. #### StartCobrowseEvent ```javascript window.addEventListener("StartCobrowseEvent", function(event) { console.log("ScreenMeet Cobrowse session has started. ID: ", event.detail.id) }) ``` #### StopCobrowseEvent ```javascript window.addEventListener("StopCobrowseEvent", function(event) { console.log("ScreenMeet Cobrowse session has end. ID: ", event.detail.id) }) ```