Hi friends,
am using javascript..
in this i have a path in some variable.
how can i confirm that path is related to folder path
or
that path is related to file path.
pls cna u halp me by giving example or some way
thanking you
Printable View
Hi friends,
am using javascript..
in this i have a path in some variable.
how can i confirm that path is related to folder path
or
that path is related to file path.
pls cna u halp me by giving example or some way
thanking you
I don't fully understand your question. Are you saying you have a variable and you can't tell if it is pointing to a folder or a file? If this is the case, can't you just look for a file extension?
You see, JavaScript does not access the filesystem. There is one exception to this. Some versions of IE can. How are you acquiring this variable?