Ciao, davvero non capisco cosa sbaglio in questo codice ed il perchè dell'errore.
Potreste aiutarmi? Grazie.
Errore
Dettagli errore pagina Web
Agente utente: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; MS-RTC LM 8)
Timestamp: Fri, 1 Jul 2011 09:15:33 UTC
Messaggio: Proprietà o metodo non supportati dall'oggetto
Linea: 21
Carattere: 14
Codice: 0
URI:
http://localhost/01072011/upload.asp
Questo è il codice:
codice:
<html>
<head>
<SCRIPT>
<!--
// Variabile globale contenente l'istanza 'window' del popup corrente
var popup = null;
function Forum(cdl, dnm, trt, fld, tbl, col, w, h)
{
var pw = Math.floor((screen.width - w) / 2);
var ph = Math.floor((screen.height - h) / 2);
// Crea il popup solo se non è già stato aperto
if (!popup || popup.closed) popup = window.open("Popup.asp?l=" + cdl + "&d=" + dnm + "&h=" + trt + "&f=" + fld + "&t=" + tbl + "&c=" + col, "scelte",
"width=" + w + ",height=" + h + ",top=" + ph + ",left=" + pw);
// Attiva il popup (portalo in primo piano)
if (popup) popup.focus(); <<<<<<=== RIGA DELL'ERRORE
}
</script>
</head>
<body>
<form action="">
Nome: <input size="20" name="Nome" readonly></p>
<a href="javascript:Forum('-', '-', '3', 'Denominazione_A', 'tbl_s', 'Denominazione_A', 400, 400)">
[img]/images/apri_icon.gif[/img]</a></p>
</form>
</body>
</html>