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
查看全文
相关阅读:
C# SocketAsyncEventArgs Server
C# Socket 入门5 UPD 结构体 与 C++ 通信
如何取得 Func 对象 字段
动态调用对象的属性和方法——性能和灵活性兼备的方法
C# 读写锁 ReaderWriteLock
C# IP多播
C# 广播通信
程序员那点儿事
wince上数据库:sqlce和sqlite
evc vc字符串转换处理
原文地址:https://www.cnblogs.com/yongtaiyu/p/2804487.html
最新文章
使用spl_autoload_register实现自动加载
THINKPHP3.0执行流程图
THINKPHP URL漏洞可执行任意系统命令
实现API库的一些思路
使用PHPRPC实现AJAX安全登录
jquery formatCurrency货币格式化处理
2012年最受欢迎的 PHP 框架
表格展示无限级分类(PHP版)
WCF,JQuery,JSON:
目前的努力有白费的迹象
热门文章
WCF,简单而又复杂的东西
WCF中的例子
WCF我应该再深入一些
我又来写博客了
WCF中的客户端
终于有点厌烦写博客了
好久没有狠狠的编程
画几张图把自己的思路整理整理
Class 创建性能测试
C# IOCPServer 异步I/O模型
Copyright © 2011-2022 走看看