I click a submit button on a form on a web page form but after long time the submission fails due to server error(request timed out). Then, when I refresh the page, a prompt box shows up saying it will resend the data and asking me to click a button to send or cancel. Worse is if I refresh the page again, the same prompt box shows up and seems to be overlapped on the previous one(the previous one seems not closed). I wonder if I can detect and close this kind of prompt boxes in a content script or background script automatically?
(When the prompt box shows up, I cannot even right-click on the web page to inspect the element so I don’t know what this prompt box exactly is.)