I added nuOnLoad() in a form's javascript. When the form is opened, the function gets triggered for the first time. (ok so far)
Now the function keeps getting triggered even when I open other forms.
I also noticed that adding nuOnLoad() in a form's JavaScript will override the nuOnLoad() that is declared in the Header of Setup.
In other words, as soon as the form's nuOnLoad() is initialized, the header's nuOnLoad() does not fire anymore.
To come around this issue, a new event nuLoadGlobal() could be introduced that can be used in the Header of Setup.