Forum Discussion
RussellKillips-
2 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";