views:

4723

answers:

3

When I call window.open() from JavaScript, I get the error dialog with the message "Line: xxx Error: No such interface supported"

Google leads me to websites referring as far back as IE4 saying that I need to run regsrvr32 on several DLLs.

Is there a better solution?

EDIT: exact code requested

<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>

EDIT2: The provided answers all go back to IE4/Win95 days. I mean, seriously?? Regardless, I disabled Smooth scrolling in IE8 (!!!) and also attempted to register the controls listed in the kb article mentioned by Shoban, but got an error attempting to register shdocvw.dll (The module "shdocvw.dll" was loaded but the entry-point DllRegisterServer was not found. Make sure that "shdocvw.dll" is a valid DLL or OCX file and then try again.)

A: 

Works fine with me in IE8. Seems like a Video adapter issue. Check this support page from MS too.

Shoban
+1  A: 

Well, I don't think there is a better solution. Searching for "No such interface supported" window.open gives me hundred thousands of results pointing to the same problem. They all say that the problem is a registry entry was corrupted, so the problem is locally and the same code would not affect other machines.

Török Gábor
A: 

Check if there are any toolbar installed. I had the same problem and this caused because I run fiddler http debugging proxy