Think about what happens if the name of the function changes, or some parameters need to be added. You have to go through all of your pages to change them. Sucks!
Using the unobtrusive way, you just need to change your JavaScript file. Awesome!