I am asking my students to create a multipage website. However, when they add a file and name it page2.html and run it, the code doesn't appear. Only the index.html code appears.
If we try including an internal link to the second page, it will run correctly.
How do we get it so that if we have the code for page 2 is displayed and we click run, we can see it work?
Ok make either a link to it on the main page or redirect it. It will always start on main page, but if u open it in a new tab and go to the second page u can just refresh to see it updated (once u run it).
@mroumani Yes. Using a little bit of js...
window.location.href="<pageName>" it will redirect to the other page upon opening it, Although u won't be able to open that page with the script on it bc soon as u open it it will go to the other (until u remove it, of course). This will also slow down the time for it to run a little bit though.
@mroumani There is if you look beside the Page URL in the Output there will be what looks like a sqaure with an arrow pointing out of it, it is right next to the pencil:
Click that and it will pop the webpage into a new tab.