Possible Duplicate:
How to determine the OS path separator in JavaScript?
I am looking for the JavaScript constant that is equivalent to Java's: File.separator
couldn't find the answer to this question here
Possible Duplicate:
How to determine the OS path separator in JavaScript?
I am looking for the JavaScript constant that is equivalent to Java's: File.separator
couldn't find the answer to this question here
What didn't you like in the accepted answer of the referenced question? You can always use forwrd slash. cmd.exe accepts "cd /temp" correctly, I have just checked this on Windows XP SP2 and on Windows 7.
AFAIK there is no constant you will have to discover the platform and set according.