Works great. To check if console.log running or not, on the onload windows event.
Launch ( Load ) the / Script page in Chrome.
Right click and select Inspect element .
Click the Console tab .
In the console field, you will see " window onload event fired. "
Screen shot:

ritesh_NITW
source share