Home > php教程 > php手册 > 用PHP实现弹出消息提示框的两种方法

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

WBOY
Release: 2016-06-13 10:18:41
Original
1604 people have browsed it

方法一:

复制代码 代码如下:


echo "<script>alert('提示内容')</script>";


方法二:

复制代码 代码如下:


echo ';';


里面的location.href="index.htm"表示你点击消息框的确定按钮后将要转向的页面。如果不用去掉就可!
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template