Yesterday I introduced how to use regular expression preg_replace to replace linefeed br with paragraph p. Today I will share with you some small php code, when javascript is called in php, the browser window is closed regularly :? PhpechosetTimeout (window. close (), 2000 );;? If you do not want to have the timing function, but close the window directly, you can
Yesterday I introduced how to use regular expression preg_replace to replace linefeed br with paragraph p. Today I will share with you some small php code, when javascript is called in php, the browser window is closed regularly :? Php echo 'settimeout ("window. close ()", 2000 );';? If you do not want to have the timing function, but close the window directly, you can
Yesterday I introduced how to use regular expression preg_replace to replace linefeed br with paragraph p. Today I will share with you some small php code, close the browser window regularly when javascript is called in php:
If you do not want to have the timing function, but close the window directly, You Can slightly modify the above Code:
Remember to add it to your favorites. Maybe it will be used at any time ..
Original article address: Close the browser window when javascript is called in php. Thank you for sharing it.