Hiding and showing a playbar button with Javascript
I want to hide the "Forward" button on the playbar when on the last slide of the project, but show it again should the user navigate back to another topic. In the browser console I can toggle the Forward button between visible and hidden using:
var btnFwd=document.getElementById('Forward');
btnFwd.style.visibility='visible';and
var btnFwd=document.getElementById('Forward');
btnFwd.style.visibility='hidden';respectively.
I have therefore added the corresponding code to the slide On Enter and On Exit actions. The button hides on slide entry but does not display when navigating to another slide. I have tried adding a short delay before the code executes but that makes no difference.
Can anyone shed any light on this? I have worked around it by adding some code to the On Enter advanced action of the other slides that checks if the button is visible and if not displays it, but I would like to understand why this is happening.
