Is there any facility for attaching javascript code, such as an "Are you sure" dialog, to the turquoise Update button on an admin screen?
Specifically I'm on the admin screen for a Utility module I've written. If the user clicks the Update button after checking a specific checkbox, I want to confirm that they really intend to do what the checkbox indicates.
I've tried dynamically attaching the form onsubmit handler, and to the button onclick handler, but neither works.
Specifically I'm on the admin screen for a Utility module I've written. If the user clicks the Update button after checking a specific checkbox, I want to confirm that they really intend to do what the checkbox indicates.
I've tried dynamically attaching the form onsubmit handler, and to the button onclick handler, but neither works.
Comment