USD – Prevent Close Window Dialog

I have been repeatedly asked a question about Unified Service Desk (USD) for Microsoft Dynamics CRM, how do we stop the often annoying “webpage you are viewing is trying to close the window” dialog?

In this post I will show you a couple of approaches I have used to solve this problem.