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
查看全文
相关阅读:
python自定义编写有关用户登录注册程序代码
项目经理多年的经验之谈
Linux虚拟机克隆后,启动系统发现网卡无法启动
mysql出现服务器异常后,重启服务器后无法开启数据库处理方法
计算机毕业四年,我都做了什么?
个人Blog(采用Django+uwsgi+nginx)里面包含很多技术文章
Delphi to C# Equivalancesdelphi和C#类似的地方
Javascript浏览器关于scrollLeft,scrollTop的兼容性
Mozilla Firefox15怎么样才能把标签页弄到下面去,就和360的一样,Mozilla Firefox15没有取消标签置顶这个选项……
Delphi过程函数传递参数的几种方式
原文地址:https://www.cnblogs.com/yongtaiyu/p/2804487.html
最新文章
C#中提供的精准测试程序运行时间的类Stopwatch
数字分页HTML CSS样式(针对IE6 Hack)
非聚集索引(主键)与聚集索引的创建
Flex 全屏
E6中PNG透明背景图片处理方法
HTML中flash 有关object embed 属性参数详解
如何在移动硬盘上建立一个无法删除文件或者文件夹?
Flex 发布问题 修改编译参数
如何使用URL Routing 进行URL重写
FLEX 3 从页面URL中取参数值
热门文章
bcdedit bcd 批处理 增加 删除操作
Flex 图片缩放、托拽效果
数字分页(转)
tab选项卡与iframe实现异步加载/绝对定位与相对定位实现小圆角表格
javascript进阶——面向对象特性
C#正则表达式Regex类使用
python对文本内IP进行筛选功能实现分享
web服务器错误日志截取及各类代码统计
myeclipse 乱码处理:设置tomcat6.0下的sever.xml文件配置字符集
python登录模块开发【两个对比模块】
Copyright © 2011-2022 走看看