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
查看全文
相关阅读:
安装HDP时的报错信息
K-近邻(KNN)算法
linux复杂命令
azkaban报错记录
azkaban的安装部署
安装centOS后要解决的问题
AI之微信跳一跳
Python的lambda
关于在vim中的查找和替换
cdh6.3.2 hue集成hbase
原文地址:https://www.cnblogs.com/yongtaiyu/p/2804487.html
最新文章
.Net Core WPF之XAML概述
微软原文翻译:适用于.Net Core的WPF数据绑定概述
在 ASP.NET Core 项目中使用 npm 管理你的前端组件包
eCharts官网
Asp.Net Core MVC在View中,根据用户权限动态生成菜单
微软关于LINQ的101个例子
Bootstrap Table 3 官方文档
GitHub上Asp.Net Core的源代码
GroupJoin()各参数的意义及用法
linux增加根分区大小
热门文章
Linux下which、whereis、locate、find命令的区别
lsof 简介
解决 yum安装时报错 Error: Protected multilib versions: 报错
Nmcli 网络管理命令行工具基础
修改VNC分辨率大小
ceph placement group状态总结
Setup network on centos 7
Troubleshoot Refused VNC Connection in CentOS 7
centos7 配置vnc
基于HDP3.0的基础测试
Copyright © 2011-2022 走看看