Everything about hooking

We want to hook a function, so that our code gets called... but we also want the original code to execute. How the heck does that work?
Done scrolling? Go back to the homepage.
We want to hook a function, so that our code gets called... but we also want the original code to execute. How the heck does that work?