javacript refresh closes LMS session

OK: an overview of what I have...The toggle functionality needs to work in this way: the audio button is in an "on" state when the audio is playing and the subtitle text box is invisible and in an "off" state when the audio is off and the subtitle text box is visible. It needs to be the same effect over several pages, and the effect needs to take place immediately (hence the refresh--my solution, maybe not the best--as it's HTML/SCORM published). The reload, however, effectively closes the window and stops the lesson--bad, to say the least.I have the toggle functionality put together at the top level of the title, so it's available everywhere, in an action group. That group is called "audio/text toggle actions", and has 4 actions in it: 1. Action Name: varAudio toggle--multiplies the variable varAudio (which is initialized as having a value of 1) by -1... this allows it to toggle between 1 and -1. [NOTE: varAudio = -1 means audio off, subtitle on and varAudio = 1 means audio on, subtitle off.]2. Action Name: toggle button visibility - audio on: Action: Toggle Visibilty State, Target: audio-on button3. Action Name: toggle button visibility - audio off: Action: Toggle Visibilty State, Target: audio-off button4. Action Name: ReloadPage - Action: modify variable, Target: varRealoadPage, Value: Javascript:window.location.reload(), Modification Type: Set Variable Contents Each page with audio has the audio, named "audio 1", Auto Start. There are three actions at the top of each of those audio pages:1. Action Name: hide/show audio text - On: Show, Action: Hide, Target: audio text box, Condition (performed only if the following is true): Variable varAudio is equal to 1, Else (if the conditions are not met, perform the following action): Action: Show, Target: audio text box2. Action Name: show/hide audio button - On: Show, Action: Hide, Target: audio button-off, Condition (performed only if the following is true): Variable varAudio is equal to 1, Else (if the conditions are not met, perform the following action): Action: Show, Target: audio button-off3. Action Name: StopAudio1 - On: Show, Action: Stop, Target: audio 1, Condition (performed only if the following is true): Variable varAudio is equal to -1 [no Else needed here, as audio is set to auto play]On each of these pages, both audio-on and audio-off (where the visibility of one or the other is toggled off) are set to on Click: Action: Run Action Group, Target: audio/text toggle actions (the first action group mentioned above).The reason I've found the javacscript reload action is needed is to toggle the audio off/audio text visibility on, audio on/audio text visibility off on the current page the button is clicked, otherwise it only effects the next page viewed.Hopefully this lays out the project in a little better detail. Sorry for the novel...

Discussions have been disabled for this post