Sto iniziando ora a convertire il mio sito html in xhtml, tutto procede bene o male velocemente ma mi sono imbattuto in un fastidioso problema: non partono le funzioni javascript.
Vi posto il codice, spero possiate darmi una mano.
codice:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="it"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <script type="javascript"> function controllo() { if (window.document.modulo.mail.value=="") { alert ("Non hai inserito l'e-mail"); window.document.modulo.mail.focus(); return false; } } </script> <title>Richiesta di recupero password</title> </head> <body bgcolor="#778899"> <center> <table> <tr> <td bgcolor="#778899"><center><font face="arial" size="3" color="white">Inserisci il tuo indirizzo e-mail per recuperare la tua password</font></center> </td> </tr> </table> <form name="modulo" id="modulo" method="post" action="recupero_password.php" onsubmit="return controllo()"> <table> <tr> <td> <font face="arial" size="3" color="white">Indirizzo e-mail:</font></td> <td> <input type="text" name="modulo" id="mail" maxlength="50" /> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> <input type="submit" value="Recupero password" /> <input type="reset" value="Annulla" /> </td> </tr> </table> </form> </center> </body> </html>
tnx!
p.s. esiste un validatore xhtml offline?