Loading screen while the browser moves to next page

Hi guys,

I am trying to add a loading screen on my page. When I press a button, it takes a little time while the next page is loaded. Is there a way to initiate a loading screen and make all the content from the page with the button disappear until the browser moves to the next page?
Thanks!