Saving File on User`s device on custom location

I am asking this as part of latest developments up until 2024 taken into consideration.

Only way I know is window.showSaveFilePicker which is supported on Chrome, Edge, Opera latest versions (https://caniuse.com/?search=showSaveFilePicker). But this approach didn’t work for me on the html app I am working on. If I go to Google and enter this onto console, it loads up save dialog but if I load up this app and do window.showSaveFilePicker method, it doesn’t work.

Is there any other way to allow user to save a file onto custom location on their computer each time they click save button? Apparently in python there is filedialog.asksaveasfile that we can use, how would we use this in conjunction with HTML frontend?