Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/06/2006, 14:02
OrgasmUs
 
Fecha de Ingreso: octubre-2004
Mensajes: 48
Antigüedad: 19 años, 5 meses
Puntos: 0
¿popup con JS que valide XHTML Trans.?

Tengo un script con js del tipo popup, para el clasico "aviso legal", etc...

Código:
<script language="JavaScript" type="text/JavaScript">
		<!--
		function MM_openBrWindow(theURL,winName,features) { //v2.0
		  window.open(theURL,winName,features);
		}
		//-->
		</script>
y en el HTML:
Código:
<a href="#" onClick="MM_openBrWindow('avisolegal.html','avisolegal','scrollbars=yes,width=400,height=600')">Aviso Legal</a>
Pero al intentar validarlo me dice esto:

Cita:
1. Error Line 131 column 25: there is no attribute "onClick".

| <a href="#" onClick="MM_openBrWindow('avisolegal.html','avisol egal','scroll

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. ....
Hay alguna manera de conseguir que esto valide XHTML transicional? (y siga funcionando?)