Forum Discussion
JerryBeaucaire
5 months agoCommunity Member
Javascript question - Hide the "Next Module" button in Litmos.
We use Litmos as our LMS. We want users to be able to use the convenient "Next Module" button in the upper right corner. But this can also be used to "skip" to the next module, which we don't want....
RussellKillips-
5 months agoCommunity Member
Hello Jerry,
The course might be running inside of an iframe, so you may need to target the parent or even the top window.
Try:
let nextmodule = window.parent.document.getElementById("module_Next");
nextmodule.style.display = "none";
Or:
let nextmodule = window.top.document.getElementById("module_Next");
nextmodule.style.display = "none";