# How to call built-in actions like Undo or Pause from the card’s script section?

**URL:** <https://forums.ankiweb.net/t/how-to-call-built-in-actions-like-undo-or-pause-from-the-card-s-script-section/60463>\
**Category:** Card Design\
**Created:** [May 7, 2025, 11:11am UTC](https://forums.ankiweb.net/t/how-to-call-built-in-actions-like-undo-or-pause-from-the-card-s-script-section/60463 "2025-05-07T11:11:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Hildeguard](https://avatars.discourse-cdn.com/v4/letter/h/a4c791/32.png) [@Hildeguard](https://forums.ankiweb.net/u/Hildeguard)\
**Post date:** [May 7, 2025, 1:08pm UTC](https://forums.ankiweb.net/t/how-to-call-built-in-actions-like-undo-or-pause-from-the-card-s-script-section/60463/2 "2025-05-07T13:08:59Z")

</div>

The [AnkiDroid JavaScript API](https://github.com/ankidroid/Anki-Android/wiki/AnkiDroid-Javascript-API) offers some advanced possibilities, although i’m not sure if it includes undo. And it is a ankidroid-specific feature, so by itself it won’t work across plattforms.  
There is [this addon](https://ankiweb.net/shared/info/1490471827), which offers some of the same functionality. But i haven’t tested it myself and am not sure if it works. See e.g. [this thread](https://forums.ankiweb.net/t/js-api-discussion/44907/).

---

_[View the full topic](https://forums.ankiweb.net/t/how-to-call-built-in-actions-like-undo-or-pause-from-the-card-s-script-section/60463)._
