on

fun on(retrieveJs: String? = null, preventDefault: Boolean = false): OnReceiver<Document>(source)

You can supply a javascript expression retrieveJs which will be available via Event.retrieveJs


See here.