filmov
tv
Ep102 - Save file as Text File with Javascript Tutorial & Source Code

Показать описание
Ep102 - Save file as Text File with Javascript Tutorial & Source Code
1. Design HTML & CSS
2. On button click get textarea text and select value
3. create Blob object pass blob content and mime type
4. use URL.createObjectURL() to create url of passed blob object
5. create a tag with javascript, give name and href
6. if filename not provided give unique name
1. Design HTML & CSS
2. On button click get textarea text and select value
3. create Blob object pass blob content and mime type
4. use URL.createObjectURL() to create url of passed blob object
5. create a tag with javascript, give name and href
6. if filename not provided give unique name