Ask coding questions

← Back to all posts
Can’t view second page, only index.html is visible when i run the code
Will4198

Help.
I only have 2 pages here for the example. When I go to second.html page and click run button nothing changes on the browser window. It still displays the index.html page.
Any suggestions. It is very frustrating.

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
Will4198
Comments
hotnewtop
Coder100

Each time you press the run button it is reset and the index.html gets shown again.

If you want, you can use the open in a new tab button:

then all you have to do is reload to see your changes.

Will4198

Thank you all you have been very helpful. I understand now.

CosmicBear

Clicking a different file opens it in the editing tab. Index.html is the default file run. No matter what, it will always show index.html when you click the RUN button. The problem here is that you haven't used Replit enough to know how it works.