How to use Save As dialog in a web page

Auto saving user input from a web page into a selected file — a use case for the modern File System Access API.