zoukankan
html css js c++ java
模态窗口弹出新页面解决办法
在模态窗口中,如有提交按钮,点击后会弹出新的页面。解决此问题有两种方法: 1、在head中,添加注意:不要在form中再添加target="_self" 否则失效 2、把弹出的窗口页面做成框架网页,去加载要展示的网 如果你的浏览器是IE5.5+,可以在对话框中使用带name属性的iframe,提交时可以制定target为该iframe的name。对于IE4+,你可以用高度为0的frame来作:例子, test6.htm =================== test7.htm =================== if(window.location.search) alert(window.location.search)
test8.htm ===================
3、另外一种解决方法 First and foremost, add the HTML tag () to the head sectionof your HTML document. Depending on your method of refreshing the form, adding this tag may be sufficient. Next check to see if your modal dialog now correctly refreshes itself.In some cases the modal dialog will still open a new window. For instance if you were using a JavaScript self.location.href= command then you will need to replace this with a simulated hyperlink click event. To do so, add a hyperlink to your page that is styled to be invisible (ie:
). Then replace your JavaScript self.document.location.href = ‘test.html’; with a click command to your hidden hyperlink as follows: document.getElementById('goLocation').href = 'test.html'; document.getElementById('goLocation').click();参考 :http://jwcooney.com/2011/12/22/showmodaldialog-opens-a-new-window-on-submit-or-location-href/ 参考 :http://blog.sina.com.cn/s/blog_4c6e822d0100r6jr.html
查看全文
相关阅读:
PHP vscode+XDebug 远程断点调试服务器上的代码
Wordpress 为用户或角色 role 添加 capabilities(权限)
Wordpress 后台文章编辑区添加模板选择功能
CentOS 7 编译安装最新版git
WordPress 通过文章 URL 获取文章 ID
Web 安全问题 rel="noopener nofollw"
Wordpress 通过 post id 获取文章 url
git放弃修改&放弃增加文件
Wordpress 作者模板页中的自定义帖子类型分页问题
PHP 删除 url 中的 query string
原文地址:https://www.cnblogs.com/yongtaiyu/p/2804487.html
最新文章
TeleMCU视频会议系统添加字幕支持
在Cocos2d-X中使用xml
@Autowired和@Resource装配
使用maven开发OSGI样例
unity3D中使用Socket进行数据通信(二)
Leetcode Copy List with Random Pointer(面试题推荐)
AppCompat v23.2 -- Vectors的时代
ubuntu Server 安装 php5
ubuntu apache2 虚拟主机服务
ubuntu Server 设置主机静态 ip地址
热门文章
ubuntu 软件包管理工具 dpkg,apt-get,aptitude 区别
linux more 上一页,下一页
mac 终端 使用 gnu coreutils 工具 ls 颜色显示
mac 终端 使用 solarized 主题设置语法高亮
iOS 设置UILabel 的内边距
NSURLSession 学习笔记
Facebook 开源动画库 pop
Nginx PHP 配置
nginx 快速查看配置文件的方法
Linux & Windows 查看 ip 地址
Copyright © 2011-2022 走看看