4 Replies
OWEN HOLT

Untested but I think the JavaScript for the modern player (SL360) would look something like the following:

//to display the glossary using JavaScript
document.getElementById("glossary-link").setAttribute("aria-expanded", "true");
document.getElementById("glossary-panel").style.display = "block";

//to collapse the glossary using JavaScript
document.getElementById("glossary-link").setAttribute("aria-expanded", "false");
document.getElementById("glossary-panel").style.display = "none";