Home  >  Article  >  Backend Development  >  用PHP实现弹出消息提示框的两种方法_PHP

用PHP实现弹出消息提示框的两种方法_PHP

WBOY
WBOYOriginal
2016-06-01 11:57:571977browse

方法一:
复制代码 代码如下:
echo "<script>alert('提示内容')</script>";

方法二:
复制代码 代码如下:
echo ';';

里面的location.href="index.htm"表示你点击消息框的确定按钮后将要转向的页面。如果不用去掉就可!

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