Client script has become quite sophisticated and it's really useful.
There is a missing simple functionality: To create script should be able to be called in the details page using a custom button.
If we have this feature for Field Event, shouldn't we have it for Custom buttons?