How to leave an HTML code rotatable on any computer by Pen drive

1

I would like to know how to program hyperlink and IMG src inside a Pen drive so that you can open it on other computers just by running inside the Pen drive itself.

    
asked by anonymous 03.10.2017 / 12:22

1 answer

1

Problem Solving

You have to use relative paths, today you should be using in your link path similar to this:

<script src="c:/usuário/João/desktop"></script>

Where you put the entire path of the file, if you use relative paths:

 <a href="desktop/menu2.html">menu2</a>

He will follow the path of the page adding the rest.

Talking about Relative and Absolute Path

The absolute address is the information for the location of the resource independently of the current page (protocol + domain + path). The relative address is the information for the location of the resource from the current page.

absolute:

  

" link "

relative:

"inscricao.htm"

Source: link

    
03.10.2017 / 13:33