title: What happens when I click the Stop button on the browser?
body: <p>Let's say I click a button on a web page to initiate a submit request. Then I suddenly realize that some data I have provided is wrong and that if it gets submitted, then I will face unwanted consequences (something like a shopping request where I may be forced to pay up for this incorrect request).</p>
  
  <p>So I frantically click the Stop button not just once but many times (just in case).</p>
  
  <p>What happens in such a scenario? Does the browser just cancel the request without informing the server? If in case it does inform the server, does the server just kill the process or does it also do some rolling back of all actions done as part of this request?</p>
  
  <p>I code in Java. Does Java have any special feature that we can use to detect STOP requests and rollback whatever we did as part of this transaction?</p>