var a = document.createElement("a");
a.setAttribute("href", href);
a.setAttribute("target", "HTEPreview");
document.body.appendChild(a); var e = document.createEvent('MouseEvent');
e.initEvent('click', false, false);
setTimeout(a.dispatchEvent(e), 2000);

一般来讲,这种方法比window。open不容易被拦截

但是对于ajax的异步提交,在success的方法里面,浏览器会拦截window.open,同时对于页面元素的click和submit也会拦截。

方法一:     若是点击发送ajax触发方法,这里要强调一下不管是自动发送ajax还是手动发送ajax成功之后调用的方法内部用Window.open()或者$(form).submit()都可能会被认为是广告。下面我的解决方法是,手动同步发送ajax,之后将ajax的值赋予变量,再在ajax方法之后调用Window.open()或者$(form).submit()就可以避免这种问题。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAjIAAAFaCAIAAACL4SCkAAAgAElEQVR4nO2dW5brKBJFPYmcb8/lftd0ahI9CPXHrVLrQkRweAiBvPdi5ZIxgiCAOEaWlZ8DAABgGT5PGwAAAPB/kCUAAFgIZAkAABYCWQIAgIVAlgAAYCGQJQAAWAhkCQAAFgJZAgCAhUCWAABgIZAlAABYCGQJAAAWAlkCAICFQJYAAGAhkCUAAFgIZAkAABYCWeri18/P+TfOBAAAhW+Rpc+/jK0WWQIAGMu3yNJvxsoSmgQAMBxkCQAAFmJSmP58jqsiXF/+PjbfTfKzOv9/Uc48zq/aFWXpkyF1TwNRBAAoMi9QJsITZB4lQboU+3jHpgYgDAAAi/OwLJ0v8w2TVqcrS8XyXoH7dksAAFBkatg9L83lmUeoW36Fg2UJAACe5WFZUo7DCo3vlg5kCQBgW2aH6VwXzit4yZ0O+tdLyQ0O5iW4FS7NIYoAAEUIlPNAlgAAihAoAQBgIZAlAABYCGQJAAAWAlkCAICFQJYAAGAh5t8g/rwQ5jbwQAcAgEWY/HPaAT8buuN0NAkAYBFmPhPvk/x9BGQJAGBlnpGlp+ChRAAAi/PARTy9ZP7fkoqZ15dmYa85vRcAAHAfD9zyoPx3CfM4fveqTMq5cSYAADzCM3fiKUrg3R/h3UeXP5jVa13PBwC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EAwEIgS5sx6k4K7sgAgDV5bWxq+K3PfcaMos3I4HdUI4wCABgJgekftojRPUYiSwCwBQSmf1g/RndaaJ6+fq8B4NvYOCpdH96TvDSfG3RYF+sujxkqPGcobyg2LH/OUNB60c7jTwkxzyr21DRVzAQAmMPeAShRi/yt68tr7M7LKJlmQ6ZJPQ2ZBeKXnmIFpweZAAAPsndUqpKl/PhxWcp3UZ7YiD0KzEOWAGAL9o5Ku8uSeLreo8A8ZAkAtmD7qORJxVhZMhsyL5cN0T+zC8EpbbKEJgHAgmwfmDy1uF4c847NwnmZuCHTpFwqvDq9dgMbcgPys2KHmLUV8wEAJkAAmsHAQD+qqqAeZAkAHoQAdDvmvgcAAEyIlQAAsBDIEgAALASyBAAAC4EsAQDAQsyTJb72BwCAIlN1AlkCAIAYZAkAABYCWQIAgIVAlgAAYCFm6wTKBAAAAeyWAABgIZAlAABYCGQJAAAWAlkCAICF4CkPAACwEOgEAAAsBLIEAAALgSwBAMBCIEsAALAQyBIAACyELUvmXdImrsMAAABRSURBVHPcRwcAAHfjKo0pQigTAADcCrIEAAALUSdLQT4AAEA/Y2QJrQIAgCFEcoICAQDAZLiIBwAAC4EsAQDAQnAnHgAALMQYWUKuAABgCP8DYVb27jvc7EIAAAAASUVORK5CYII=" alt="" />

方法二:但是对于mvc表单提交,很难设置同步异步,方法是在ajax执行之前先打开一个新窗口,这时候是同步的,所以不会有问题,然后在异步调用成功后使用location.href将其指向新的url,如果失败则将该窗口关闭。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdkAAAFsCAIAAAAPIlSTAAAgAElEQVR4nO2dz26jPBeHfU9wK+xYIHlfZdHMHVQq0vgCPlWqmuYGqCrUdi6gXbWdRVao22puIa/mj78FYGx8TCAhNUl+jzJqcjC2ocmTwwGm7Nfnh9/H/2rWAABwqjC4GAAAvAMXAwCAf+BiAADwD1wMAAD+gYsBAMA/cDEAAPgHLgYAAP/AxQAA4J8JuVgCAMCpAhcDAIB/4GIAAPAP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cRxFrlClwE2xr96tcTJ9T2+zipkQRCqELxTqsJIN1F9aMbBcX9akzLmS4QZHN9XBGJ3k7yJlRm9a7MiLugVz66XEdhaP6qR+VN0VkpjLXzqBrzxMDaaf5tAZNB0SBpX1ET7xDtAnU+4v+vRMD6S21YYgdMnDPk2/l/h8Ex+pgahzcvR7UUZ/vEpnv8XeCmDy5Pe5MDmxH3z2/KffeanUwOQ7JxY5L3KdQIJvuxbc96Hv3V/4193qcED32fM7tfT7gg0CtDqbJIbkYAACOFbgYAAD8AxcDAIB//LsYDzzwwAMP5vvLAAAAgISLAQDAP3AxAAD4By4GAAD/wMUAAOAfuBgAAPwDFwMAgH/gYgAA8A9cDAAA/oGLAQDAP3AxAAD4By4GAAD//B8qh01WqxjhOQAAAABJRU5ErkJggg==" alt="" />

不过,据说会有一个问题,就是当失败后,会先打开一个窗口,然后再关闭,虽然一闪而过,但是对用户总是一个困扰,相对来说还不如将ajax改成同步,毕竟现在的互联网的访问速度,不至于会将浏览器锁住太长时间。

参考资料:http://blog.csdn.net/yanhandle/article/details/8486638

js新打开页面的更多相关文章

  1. jquery模拟form表单提交并新打开页面

    /** * form表单提交本页面打开 * @param url * @param params */ function postCurrent(url,params){ var form = $(& ...

  2. 【MFC】在CHtmlView中在同一窗口显示新打开页面

    使用MFC的单文档,用IE核心做的简单浏览器.当打开一个新的链接时,IE核心会使用IE来打开一个新窗口显示打开的新页面.为了让新页面在本程序中显示,我试了如下方法,其中的问题一并列出: 方法1.重载C ...

  3. dns-prefetch,新打开页面预抓取

    dns-prefetch 对性能提升有多大 转载2016-04-07 12:57:41 标签:网站推广dns-prefetch对性能提 dns-prefetch, 是DNS预获取,也是网页前端的优化的 ...

  4. 利用JS自动打开页面上链接的实现代码

    在这里做一下简单记录,防止自己忘记. 下面是实现自动点击打开链接的主要函数,功能不再细说,防止太多人滥用,有心的人一看就会明白,改把改把就是一个邪恶的程序: function randopen() { ...

  5. 根据打开页面加载不同Js

    根据打开页面加载不同Js //根据打开页面加载不同JS $(document).ready(function(){ var href = document.URL; /*获取当前页面的URL*/ if ...

  6. Web设计中打开新页面或页面跳转的方法 js跳转页面

    Web设计中打开新页面或页面跳转的方法 一.asp.net c# 打开新页面或页面跳转 1. 最常用的页面跳转(原窗口被替代):Response.Redirect("newpage.aspx ...

  7. 在js中实现新窗口打开页面

    我们都知道可以在html代码中使用<a href="xxxx" target="_blank"></a>这种方式来打开一个新的窗口打开一 ...

  8. js跳转页面与打开新窗口的方法

    1.超链接<a href="http://www.jb51.net" title="脚本之家">Welcome</a> 等效于js代码 ...

  9. HTML:模拟链接被按下,在新标签页打开页面,不使用window.open(可能被拦截)

    当按下一个按钮时,想打开一个新的标签页,可以使用window.open去实现但是因为使用window.open在新窗口或者新标签页中打开页面,有可能被浏览器给拦截.为了解决这个问题,可以模拟链接被按下 ...

随机推荐

  1. C# 尝试读取或写入受保护的内存。这通常指示其他内存已损坏

    用管理员身份运行CMD,输入netsh winsock reset并回车(注意,必须是已管理员身份运行,这个重置LSP连接)运行后提示要重启生效,结果没重启就OK了(重启不重启看最终效果).

  2. Python3 tkinter基础 Frame bind 捕捉多键同时按

             Python : 3.7.0          OS : Ubuntu 18.04.1 LTS         IDE : PyCharm 2018.2.4       Conda ...

  3. Markdown语法参考

    参考博客: https://www.jianshu.com/p/f3147a804368 https://www.jianshu.com/p/191d1e21f7ed https://www.jian ...

  4. [蓝桥] 算法训练 P0505

    时间限制:1.0s 内存限制:256.0MB 一个整数n的阶乘可以写成n!,它表示从1到n这n个整数的乘积.阶乘的增长速度非常快,例如,13!就已经比较大了,已经无法存放在一个整型变量中:而35!就更 ...

  5. 【sql server】索引详解

    索引可以理解为一种特殊的目录结构. sql server提供两种索引形式: 聚集索引和非聚集索引. 怎么理解这两种形式. 拿我们常用的字典举例来说, 一个字典好比数据库中的一个表.那么当我们想从字典中 ...

  6. kubernetes 实战5_命令_Assign Pods to Nodes&Configure a Pod to Use a ConfigMap

    Assign Pods to Nodes how to assign a Kubernetes Pod to a particular node in a Kubernetes cluster. Ad ...

  7. Python有趣现象(不定时更新)

    1.list中extend方法有趣现象 1.1 List+=Str 与 List.extend(Str) list1 = [11,2,45] str1 = 'Michael' list1.extend ...

  8. eclipse创建maven web项目工程步骤示例

    参考链接:https://www.cnblogs.com/noteless/p/5213075.html 需求表均同springmvc案例 此处只是使用maven 注意,以下所有需要建立在你的ecli ...

  9. js url参数和对象互转

    function param(a) { var s = [], rbracket = /\[\]$/, isArray = function(obj) { return Object.prototyp ...

  10. Python数据类型补充1

    一.可变和不可变类型 可变类型: 值变了,但是id没有变,证明没有生成新的值而是在改变原值,原值是可变类型 不可变类型:值变了,id也跟着变,证明是生成了新的值而不是在改变原值,原值是不可变 # x= ...