The main advantage of setting the event handlers in the page’s onReady() function is that if you need to copy/paste, you don’t need to connect the elements with the event handlers. Setting event handlers from the Property panel is often more convenient.
I use both depending on my mood and the weather.