Hi all, How to find the actual file path from a relative file path in javascript?
BlobFisk
5:14 pm on Jan 21, 2004 (gmt 0)
Hi sireesha,
How do you mean, as part of a script function or yourself?
sireesha
3:52 am on Jan 22, 2004 (gmt 0)
Hi Bob, I have a relative filepath, I need to get the actual file path from this, using javascript. Is there any function for that? If not how do I do it? Ex: var relFilePath="../open.htm"; From this I need to find the actual file path.
Thanks, Sireesha
BlobFisk
4:54 pm on Jan 23, 2004 (gmt 0)
Hmmm - I'm not sure - but how about using window.location? This should bring back the absolute path of the current page, which should help you with your problem...