title: "Are you sure you want to leave this page?" message in web browser windows forms c#
body: <p>I made a program in c # using .NET and Windows Forms. The program must navigate through some web pages and display them on the screen, but when I access certain pages I receive the message in the image below. I tried just about everything I found on the net (searched on Google) and have not found something that works. I think it has something to do with <code>onbeforeunload</code>, but I'm not sure. </p>
  
  <p>I already checked discussion on this topic or anything like that on the site.</p>
  
  <p><img src="https://i.stack.imgur.com/h3fMW.png" alt="enter image description here"></p>