Javascript not working properly (Moodle 3.3+)

Re: Javascript not working properly (Moodle 3.3+) Solved

by Madhu Avasarala -
Number of replies: 0

The problem was the statement:

windows.onload = myfunction();

by modifying it to:

windows.onload = myfunction;

all problems went away! This is not flagged as a syntax error but just gets choked on! same code works fine locally on pc on the chrome browser. Terrible debug!

Sorry about this.

Average of ratings: Useful (1)