Home  >  Article  >  Backend Development  >  A small function that prompts specified messages through JS on the page

A small function that prompts specified messages through JS on the page

WBOY
WBOYOriginal
2016-07-25 09:07:13876browse
  1. /*

  2. * Function: Specify the message through JS prompt on the page, and end the page execution
  3. * Parameter:
  4. * Msg: The message to be displayed
  5. * URL: The page to be returned needs to be specified , return to the previous page if not specified
  6. */

  7. function ShowMsg($Msg, $URL = "")

  8. {
  9. //header('Content-Type: text/html; charset =utf-8');
  10. //echo '';
  11. echo "";

  12. exit();

  13. }
Copy code


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn