manca solo il doppio uguale: codice: if (stringa.indexOf(inizia) == 0) alert("OK")
if (stringa.indexOf(inizia) == 0) alert("OK")
Regole del Forum