<div id="tag-link-container">
    <a id="tag-link" href="#">KeyWord</a>
    document.getElementById('tag-link').addEventListener('click', function() {
        var keyword = document.getElementById('tag-link').innerText; // 获取关键词
        window.location.href = 'ankiweb://search/' + keyword; // 打开具有相同名称标签的所有卡片

If you’re asking about running the search query in Anki’s browser rather than AnkiWeb, I wrote a simple add-on for that: anki-misc/browser_link at master · abdnh/anki-misc · GitHub

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.