Relative vs Absolute paths

M

MT

Hello Everyone:

I have been reading some conflicting information regarding
the use of relative and absolute paths in XHTML or JavaScript.

Can someone give me a clear answer as to which
advantages/disdavantages there are for each? Or if you
can point me to a web site where this is clearly explained.

Thanks in advance,
Mario
 
D

David Dorward

MT said:
I have been reading some conflicting information regarding
the use of relative and absolute paths in XHTML or JavaScript.

Can someone give me a clear answer as to which
advantages/disdavantages there are for each? Or if you
can point me to a web site where this is clearly explained.

Relative are shorter and generally more portable between sites.

Absolute let you have load a resource from one domain in to a page on
another.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,076
Messages
2,570,565
Members
47,201
Latest member
IvyTeeter

Latest Threads

Top