Newsgroup: it.comp.lang.javascript
Titolo: Perché "window.open" non funziona con I.E. 4.0?

Il soggetto del messaggio dice già tutto. 
Una semplicissima istruzione Javascript come questa:
window.open('finestra.htm','nome_finestra','directories=0,menubar=0,status=1')
non funziona se utilizzata con Internet Explorer 4.0
Ovviamente tutto funziona correttamente con Netscape 3.0 e superiori.
Suggerimenti?
Grazie anticipate, Stefano Di Persio


Scusate l'estrema lunghezza del messaggio ma riporto integralmente un
articolo apparso su 
www.builder.com
Tengo a far notare, in base alla mia modesta esperienza, che il problema non
si verifica soltanto su macchine in cui era stata in precedenza installata
la beta, inoltre, in casi estremi si è costretti a reinstallare totalmente
IE 4. Nel caso si rendesse necessario reinstallare, bisogna fare attenzione
ad installare tutto nuovamente, senza farsi trarre in inganno dalla
possibilità di installare solamente le componenti mancanti.
Massimo
There's a nasty JavaScript browser bug on the loose; if it hasn't gotten to
you yet, it may be just around the corner. And even if this bug hasn't
bitten you, you still need to worry about it.
This particular creepy-crawly is the mutant offspring of a star-crossed
union between a beta version of Microsoft Internet Explorer 4.0 and the
browser's final release. You've met the bug if you've ever gotten the
perplexing "No such interface supported" error when clicking a link to open
a pop-up window using IE 4.0.
The browser chokes on this line of code:
popupWin = window.open("file.html", "remote");
The weird thing is that only some users get this error, so it's been
difficult getting to the bottom of the problem. It seems, at least
sometimes, to be a result of installing the final release of IE 4.0 over a
previously released beta version without first uninstalling the beta. Some
ugly miscommunication between the two versions of the browser is happening
in the bowels of the CPU.
One (admittedly annoying) way to annul this dysfunctional marriage is to
uninstall and then reinstall IE 4.0. I've responded with this advice to many
readers' cries for help, and I haven't heard back from one for whom it
didn't solve the problem.
The folks at Microsoft. Product support assured that the company will fix
the problem in future versions of IE and referred to Q180176, an article
about the bug posted at the Microsoft Knowledge Base. (Note: Accessing the
Knowledge Base requires initial registration.)
The article specifically focuses on the case when selecting "Open in new
window" when right-clicking a hyperlink won't actually open window. But
product support assured that the JavaScript window.open() problem is
related, and that the following resolution, excerpted from the article, will
heal all:
1. Click the Start button on the Windows toolbar, then click Run.
2. In the Open box, type regsvr32 actxprxy.dll.
3. Click OK. You should see the following in a message box:
DllRegisterServer in actxprxy.dll succeeded.
4. Click OK.
5. Click the Start button, then click Run.
6. In the Open box, type regsvr32 shdocvw.dll.
7. Click OK. You should see the following in a message box:
DllRegisterServer in shdocvw.dll succeeded.
8. Click OK.
9. Shut down and restart Windows.
Still pretty darn annoying. And it's always scary when you start messing
with the registry, although support assured it's safe, since you're not
editing the registry directly.
So spread the word, and by all means don't install the final release of IE
4.0 until you've uninstalled the beta version!



There's a nasty JavaScript browser bug on the loose; if it hasn't gotten to
Ciao
avevo letto a suo tempo questo articolo ed e' stata una benedizione perche'
avevo proprio quel problema di cui si parla nel messaggio. Io seguendo i
consigli della tizia ho risolto definitivamente per cui consiglio tutti di
provare.
Ciao
Claudio