Hi everybody and happy new year.
I am using this javascript to get the name of the subfolder that contains a
file:
var theIdArr=location.pathname.split("/");
var theId=theIdArr[theIdArr.length-2];
now the var "theId" can be displayed with document.write and it works.
Can someone help me to use this value (theId) as a ID of a DIV?
It should be placed like this:
<div id="theIdValueGetFromTheJavaScript"</div>
I have no idea if it is possible to do it, and how.
Thanx a lot for any help
Cheers,
Luca