How to: Bootstrap button onclick events
We can easily add a onclick event to our button by selecting him via e.g. .querySelector() method then we can add our event listener to the selected node using the .addEventListener() method.
This is a mobile version of the documentation.
View this website on the desktop to copy & edit the source code of the component.