reffer

L

L-and-F

It depends on what you mean by the name, but this script will give you the
full path and URL





<html>
<!-- www.lee-mcgeorge.co.uk-->
<head>

</head>
<body>

<SCRIPT LANGUAGE="JavaScript">
var path = "";
var href = document.location.href;
var s = href.split("/");
for (var i=2;i<(s.length-1);i++) {
path+="<A
HREF=\""+href.substring(0,href.indexOf("/"+s)+s.length+1)+"/\">"+s+
"</A> / ";
}
i=s.length-1;
path+="<A
HREF=\""+href.substring(0,href.indexOf(s)+s.length)+"\">"+s+"</A>";
var url = window.location.protocol + "//" + path;
document.writeln(url);
</script>

</body>
</html>
 
G

G Roydor

les propriétés de location sont

location.[ hash | host | hostname | href | pathname | port | protocol |
search ]

GR

Alain Dhaene a écrit:
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top