What is the code for going up one level in javascript? I'm using Ajax.
var ajax = new XMLHttpRequest();
ajax.open("POST", "goUpOneLevel/php/mail.php", true);
Like in CSS, while setting background URL, to go up one level we use '../' But in the above code this is not working.
Please tell me the code to go up one level.
I think this much of code is enough for this question that's why I am not posting whole bunch of my code. AND I know I can use absolute url, but I want relative url because if my code is shifted to another domain (which will 100%) then it will not work.
Here is my list of URLs -
My JS file in which the ajax code is placed-
http://localhost/myFolder/js/script.js
My php file - http://localhost/myFolder/php/mail.php
Thanks in advance.