Over on the Beer StackExchange page, I just read this question, which asks why a common beer prank causes a very sudden mess.
Now having read the answers on that page, the next time someone taps a bottle on top of my beer, I'll know exactly why it's about to overflow, but I don't know how to stop it or prevent the huge mess I'm about to experience in about 500 milliseconds.
So at a party, can I prevent my beer or overflowing when tapped like this (assuming I am offered a bottle and no other container to pour it into), and what can I do during the moment before something terrible happens?