Stopping Dynamic Actions using apex.da.cancelEvent
Update: Nick Buytaert wrote a follow-up article on the apex.da.resume function. I suggest reading it along with this article in case you need to resume a Dynamic Action (which is especially useful for plugins).
They're a few times when you may need ...
talkapex.com2 min read