How do you focus on something else while filming?

I always see it in movies and tv shows, the camera is focusing on somethig and it's blurring the background, and then the background is blurred and the the other part that was focusing before is now blurred, how?
2 answers 2