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

WBOY
Release: 2016-05-17 08:52:19
Original
1219 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!