Skip to content
CoursesWeb Forum
SectionsJavaScript Events, Timers and Fetch

JavaScript Events, Timers and Fetch

setTimeout, setInterval, promises, async and await, fetch and JSON: code that runs later, code that waits, and code that talks to a server.

Threads in JavaScript Events, Timers and Fetch

  1. ✓

    How do I clear a form after sending it with fetch or AJAX?

    Call the form's reset method after the server has answered successfully, not before. Stop the normal submit with preventDefault, send the fields with fetch and...

    JavaScript Events, Timers and FetchTeodora VanceStaff answer
    1reply
CoursesWeb Forum. Questions and answers on learning web development: HTML, CSS, JavaScript, PHP, MySQL, Node.js and AI coding help.