Folder browsing

Asked

Viewed 71 times

-1

Good afternoon,

I have several folders

ex: pasture 1, pasture 2 and pasture3

inside each folder has an index.html

I need to create a button that when I click forward it jumps to folder 2 and accesses index.html and when I click forward again it accesses folder 3 and index.html

The problem is that I can’t put the exact path of the folder needed it to follow an order.

Someone can help me?

  • don’t just use href="pasta1/index.html" and so on?

  • 1

    Friend as well "I can’t put the exact path of the folder" if you can’t put a href with the way you want the link "guess" where you have to go

  • wanted him to go through the folder order that is at the root

  • I think this will help you https://answall.com/questions/2315/diff%C3%A7a-among-urls-absolute-relative-count%C3%Bados-da-p%C3%A1gina

  • You need to receive information from folders that are in the directory by the server side to be able to create links with the attribute href correct.

1 answer

-1


If you have the file open even in the browser, for example file:///Users/user/Desktop/Landing/index.html, You cannot do this because you are opening a folder from your computer. You can download VS Code or some text editor that has a simulator in the browser and make a <a href="/index.html" >Link</a>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.