run_java_script
run_java_script($script_text,$add_file=""); - add to the current page and call any JS
Function accepts parameters as input:
$script_text – script text. If you need to get the result of the script, then how to do this is in the example below.$add_file – path to the file whose contents will be added to the beginning of the script text (if empty or there is no file, it will not affect anything).(available from version 4.9.26)
After testing, the function returns the result of its work to the script :
result – the result of execution (starting from version 4.10.10) in older versions - just the status that was executed
false – failed to execute