If I have files named test.html, test2.html, test3.html, etc. and I want to get to a file in a subdirectory with the same name as the html file from an external js. Is there a way to do this?
This is the function in my external js that I want to be able to direct to the subdirectory with the same name as the html file currently using the external js.
Expand|Select|Wrap|Line Numbers
- function change2()
- {
- top.parent.leftside.iframe1.location="test/file.html";
- }
So I want this function to go to a subdirectory with the same name as the html page currently using the external js.
thanks in advance for any suggestions.