Cool123 Cool123 - 1 year ago 48
HTML Question

How to open a local file from your USB

I was creating some games to show others and I came across this problem. I was using a USB to store my web pages in .html and I wanted an html page to open up and replace the current page. For example, I want

to be able to open up
. I've searched up answers although they use the C drive. Are there any ways to do this?

Answer Source

Just make a link like so:

<a href="html2.html">Go to page 2</a>

This link will work as long as html2.html is in the same folder as the initial html file.

If you want to redirect automatically, you can use a meta tag. The samble below will redirect to html2.html after 3 seconds.

<meta http-equiv="refresh" content="3;URL=html2.html">
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download