Then, I called my initmiccheck() function from developer tools console in Chrome. The function runs and works perfect.
The issue is that my window.onload is not working as expected because the function initmiccheck() function does not fire on page load.
Can anyone guide what wrong I am doing with the onload statement?
Thanks in anticipation.