Internet Explorer 8,9 window.open问题 [英] Internet Explorer 8, 9 window.open issue

查看:121
本文介绍了Internet Explorer 8,9 window.open问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IE 8和9中打开代码时,只会打开没有语言代码和句子的 http://translate.google.com/ 。它可以在Chrome和Firefox中正常工作。

when opening the code blow in IE 8 and 9 it opens only the http://translate.google.com/ without the languages codes and the sentences. it works fine in Chrome and Firefox.

function DoTransGg(){
window.open('http://translate.google.com/#en|de|I want to travel with him.','_blank')
}
<input type='button' value='Google Translate' onclick='DoTransGg()'>


推荐答案

IE仅在localhost上使用时才会出现此行为。使用远程Web服务器时,它的功能正确,并且在执行 window.open(url ...#...)时包含哈希。

IE exhibits this behaviour only when used on localhost. With a remote webserver, it functions correctly, and includes the hash when executing window.open(url...#...).

这篇关于Internet Explorer 8,9 window.open问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆