Chl*_*hil 7 javascript internet-explorer-8
当我从JavaScript调用window.open()时,我得到错误对话框,其中显示消息"Line:xxx Error:No such interface supported"
谷歌引导我到早在IE4上提到我需要在几个DLL上运行regsrvr32的网站.
有更好的解决方案吗?
编辑:请求确切的代码
<html><head>
<script type="text/javascript">
function windowOpen() {
window.open("http://localhost/mysite/mypage.asp", "myWindowName", "");
}
</script></head>
<body>
<button onclick="windowOpen();return false;">Hi There</button>
</body></html>
Run Code Online (Sandbox Code Playgroud)
编辑2:提供的答案都回到了IE4/Win95天.我的意思是,认真?无论如何,我在IE8(!!!)中禁用了平滑滚动,并且还尝试注册Shoban提到的kb文章中列出的控件,但是在尝试注册shdocvw.dll时遇到错误(模块"shdocvw.dll"已加载但是找不到入口点DllRegisterServer.确保"shdocvw.dll"是一个有效的DLL或OCX文件,然后再试一次.)