enable_java_script
enable_java_script($enable=true,$refresh=true); - allow or deny loading and execution Java scripts in the browser (when JS is disabled, the transition to the page is significantly accelerated, but it may not be displayed correctly and processed).
To check whether JS is allowed or forbidden in the browser, you can use this function is_enable_java_script.
the input Function accepts parameters:
$enable – allow (true) or deny (false)$refresh – whether to refresh (true) or not (false) the page after this command
After testing, the function returns the result of its work to the script :
true – completed successfully
false – failed