It is mainly used to handle run-time events at the time of page loading