如图,除非用户设置允许,要不然是不可以的!:建议还是自己使用window.location.href兼容吧..同时,除了用户点击之外,FF也把FORM和A的跳转给屏蔽了:
> clear()
> aElement = document.createElement('a')
<
> aElement.setAttribute('target','_blank')
< undefined
> aElement.setAttribute('href','zhidao.baidu.com')
< undefined
> document.body.appendChild(aElement)
<
> aElement.click()
< undefined
然后就出现了