Javascript stopped working
I've been using JS successfully, but for some unknown reason, I cannot get it to execute in an SL2 project I have updated to SL360.
In particular, I use the window.history.back method to return to our LMS. It's always worked fine. In this project, however, it does nothing. I've tried plugging in a JS alert but that won't execute either.
There's nothing unusual about this project that I can see. Any suggestions on types of things that might render the execute javascript function inoperable?
2 Replies
This suggests there is an issue with the code that precedes the alert. Are there any errors in the console?
There is no preceding code. In the case of the history back, it's just:
window.history.back();
I'm going to try republishing some of the previous modules where the JS worked, and see if it has magically stopped working now.