php 弹出对话框
来源:互联网 发布:c语言数组教程 编辑:程序博客网 时间:2024/06/16 07:53
- < ?PHP
- echo "< script language=
\"JavaScript\">alert
(\"你好\");< /script>"; - ?>
或者
- < ?PHP
- print "< script language=
\"JavaScript\">alert
(\"你好\");< /script>"; - ?>
2. 如果需要PHP弹出对话框之后返回原来页面可以这么写
- < ?PHP
- echo "< script language=
\"JavaScript\">\r\n";- echo " alert(\"你好\");\r\n";
- echo " history.back();\r\n";
- echo "< /script>";
- exit;
- ?>
或者
- < ?PHP
- print "< script language=
\"JavaScript\">\r\n";- print " alert(\"你好\");\r\n";
- print " history.back();\r\n";
- print "< /script>";
- exit;
- ?>
3. 如果需要PHP弹出对话框之后用新的页面替换原来的页面(更换当前历史纪录),原来页面可以这么写
- < ?PHP
- echo "< script language=
\"JavaScript\">\r\n";- echo " alert(\"你好\");\r\n";
- echo " location.replace
(\"http://www.asm32.net/\");
\r\n"; // 自己修改网址- echo "< /script>";
- exit;
- ?>
或者
- < ?PHP
- print "< script language=
\"JavaScript\">\r\n";- print " alert(\"你好\");\r\n";
- print " location.replace
(\"http://www.asm32.net/\");
\r\n"; // 自己修改网址- print "< /script>";
- exit;
- ?>
- php 弹出对话框
- PHP弹出对话框的方法
- 详细解读PHP弹出对话框技巧
- 弹出对话框
- 弹出对话框
- 弹出对话框
- 弹出对话框
- 弹出对话框
- 弹出对话框
- 弹出对话框
- 弹出对话框
- 弹出对话框
- 弹出对话框
- 弹出对话框
- 弹出对话框
- 弹出对话框
- 弹出对话框
- 弹出对话框
- C++ enum用法
- apache htpasswd命令用法详解
- 协议设计和架构
- SurfaceView Android摄像头拍照
- accessSuper() {System.out.println(super.count);
- php 弹出对话框
- 生产者消费者模型(为什么使用两个信号量?)
- GrivdView的用存储过程分面效果
- SVN 出现This client is too old to work with working copy...错误
- Java串口通信详解【非常感谢编写这篇文章的兄弟。收益良多】
- 符合推理的解决方法 NSlover
- RTEMS 移植到 sbc2440 的简要笔记
- python学习之二
- Linux下Apache+cgi的配置方法。(转) ---设置cgi-bin