This page demostrates
implementation for Prototype.js.
There is a ticket logged in the Prototype.js bug tracker (Lighthouse) requesting this feature. If you also want this feature added to core, head over there and say so.
Log bugs and request features on Github.