Scenario: When the page file .html is opened as a local file (that is, the IE path starts with file:///), the content of the local text file needs to be accessed.
The local file directory is in the subfolder of the page file.
Directory structure
|-test.html
|-Scripts
|-data.txt
Need to access the content of data.txt.
Code: