GlobalEventHandlers.onmonetization
The onmonetization
property of the
GlobalEventHandlers
mixin is the event handler for
processing monetization events sent to the window.
Syntax
window.onmonetization = functionRef
Examples
window.onmonetization = function () {
alert('Web Monetization event triggered.')
}
Specifications
Specification |
---|
Web Monetization API #onmonetization-event-handler |
Browser compatibility
desktop | mobile | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on iOS | Samsung Internet | Puma Browser | |
onmonetization | Yes | Yes | Yes | No | Yes | No | No | No | No | No | No | No | Yes |
- Full Support
- No Support
- You'll need to use a Web Monetization Extension