Answers for "js get content of text input from another file"

1

html get text from file

<embed src="file.txt"> // This will show the text contained in file.txt in the page
Posted by: Guest on November-14-2020
2

how to load localt ext file in js

const fileUrl = '' // provide file location

fetch(fileUrl)
   .then( r => r.text() )
   .then( t => console.log(t) )
Posted by: Guest on June-03-2020

Code answers related to "js get content of text input from another file"

Browse Popular Code Answers by Language