I have a problem: I want to redirect via JavaScript to a directory above. My code:
location.href = (location.href).substr(0, (location.href).lastIndexOf(\'fo
try following js code
location = '..'