In this way, you can jump to {code...} and the following code server returns a blank page without executing my command. What is the problem? Php code: {code...} can jump to the URL as follows:
echo "《script》";echo "window.location.href = '$url'";echo "《script》";
The following code server returns a blank page without executing my command. What is the problem? Php code:
echo "《script》";echo "function(){ alert($error_msg); setTimeout(window.location.href = '$url',5);}"; echo "《script》";
Reply content:
In this way, you can jump normally:
echo "《script》";echo "window.location.href = '$url'";echo "《script》";
The following code server returns a blank page without executing my command. What is the problem? Php code:
echo "《script》";echo "function(){ alert($error_msg); setTimeout(window.location.href = '$url',5);}"; echo "《script》";
SetTimeout (func, 5 );
Func is a method.
echo "《script》";echo "function func(){ alert($error_msg); window.location.href = '$url';}";setTimeout(func,5); echo "《script》";
Upstairs
The js part only defines that the function is not called.