enable_browser_message_boxes
enable_browser_message_boxes($enable=true,$default_answer="Ok"); - allow browser message dialogs and set auto-response to them. If dialogs are disabled ($enable=false), pop-up browser dialogs will not be displayed, but will be processed according to the rule in $default_answer
The function accepts parameters as input:
$enable – allow (true) or prohibit (false) browser messages$default_answer – default response for forbidden messages. It can be one of several options :
"Ok" - click OK (OK)
"Cancel" - click Cancel (Cancel)
& nbsp; & nbsp;"Abort" - click the Abort button (Abort)
& nbsp; & nbsp;"Retry" - click the Retry button (Repeat)
& nbsp; & nbsp;"Ignore" - click Ignore (Ignore)
"Yes" - click Yes (Yes)
& nbsp; & nbsp;"No" - click No (No)
After testing, the function returns the result of its work to the script :
true – completed successfully
false – failed