Dec 18, 2020 METHOD 2) SUBMIT FORM USING FETCH. FETCH POST SUBMISSION. 2a- fetch-post.js. .

How to abort a JavaScript assigned to a button prior to other Actions. I have assigned 2 actions to a button: 1) Run a JavaScript, then 2) Submit a form. When a condition is met in the script, I want to return to the form, without going on to the second action. The script works fine without this "kick out". 2020-04-21 · // Omit this line if you want to use the AbortSignal built into the browser. import { AbortController } from "@azure/abort-controller"; // create a controller and get its signal const controller = new AbortController(); const abortSignal = controller.signal; // pass the abortSignal into the API you want to cancel await blobClient.download({ abortSignal }) // then sometime later, cancel it!