Linking HTML pages together that are stored locally?

Aaron

New member
You would use relative links.

As long as these files are in the same directory you can just call them directly by name.

Save the files in the same directory and then just call the file without a path.

window.location='myfile.htm'

HTH,
Aaron
 
I currently have four HTML pages stored locally on my computer. I have tried linking them together using

<input type="button" value="Product Description" onclick="window.location='C:FILEPATH'">

It says Firefox does not recognize (c) as a protocol. I simply need the pages to link together.

Note: This project is for a class (not a computer science class) and therefore it does not have to work on the web, I simply need it to run properly off my computer.
 
Back
Top