I’m using the WebDev and Perspective modules to create a custom page. In this page, I have a Print
button, which I want to trigger a function inside my index.html
text resource script.
Is it possible to bypass Perspective’s event handlers and add an onclick
attribute directly to the button? For example (this is not what I want to do), show an alert on button click with alert('Hello, World!')
.