• Post author:
  • Post category:Blog
  • Reading time:1 mins read
  • Post last modified:June 12, 2024

In a browser, we want to open a local file by typing the path to it in the address bar. The path must be preceded by:

  • local:///
  • http://
  • https://
  • file:///
Answers Explanation & Hints:

To open a local file in a browser by typing its path in the address bar, the path must be preceded by “file:///”.

For example, if you have an HTML file named “index.html” located at “C:\Users\Username\Documents\index.html”, you would type the following in the address bar:

file:///C:/Users/Username/Documents/index.html

The “file:///” prefix indicates that you want to access a file on the local file system.

For more Questions and Answers:

JavaScipt Essentials 1 (JSE) | JSE1 – Module 1 Test Exam Answers Full 100% 

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments