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

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

WBOY
Release: 2016-06-01 11:57:57
Original
2025 people have browsed it

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

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template