// Create a new event, allow bubbling, and provide any data you want to pass to the "details" property
const eventAwesome = new CustomEvent('awesome', {
bubbles: true,
detail: { text: () => textarea.value }
});
We use cookies and third-party analytics to understand site usage. Click "Accept" to allow, or "Decline" to keep them off (which may limit functionality). By using our site, you agree to our Cookie Policy, Privacy Policy, and Terms Of Service.