OiO.lk Blog javascript How to change the window.showSaveFilePicker() title
javascript

How to change the window.showSaveFilePicker() title


How to change the title in window.showSaveFilePicker() function.

async function getNewFileHandle() {
  const opts = {
    types: [
      {
        description: "Text file",
        accept: { "text/plain": [".txt"] },
      },
    ],
  };
  return await window.showSaveFilePicker(opts);
}
getNewFileHandle();



You need to sign in to view this answers

Exit mobile version