How can I access a folder or file in parent folder JavaScript?

directory, html, javascript, shared-directory

Solution

You can use `../` to access a relative parent folder.

Problem

I have a web page(`index.hmtl`), which has links to go to pages in the `page` folder. How can I link back the main page from the a webpage in the `page` folder? File tree: ``` /www index.html /pages pageA.html pageB.hmtl ``` Thanks.

Original source