In JS, A redirection method is implemented. location. href & quot; login. php & quot; // The page jumps directly to the login under the current directory. if you want to write the jump address in an absolute path and want to use special characters such as/& quot;, escape the character // backslash/& quot; if you want to jump to double quotation marks, you will... sy
A method to achieve redirection in JS
Location. href = "login. php"; // The page jumps directly to the login. php page in the current directory.
If you want to write the jump address in an absolute path, you need to escape characters if you want to use special characters such /.
// Backslash
/"Double quotation marks
To jump
You need to write it like this, followed by Parameters
Var url = "http: \/localhost/EasyChatt/index. php? ContactController/listMyContact/"+ checkValue;
Location. href = url;