Execute a piece of code on page loading event .

Execute a piece of code on page loading event.