how to access background when bootstrap modal is open code example Example 1: open bootstrap modal with javascript $("#myModal").modal() Example 2: alert modal npm i bootbox