nascondere TR con IE e FIREFOX

  • Creatore Discussione Creatore Discussione jake_cz
  • Data di inizio Data di inizio

jake_cz

Utente Attivo
15 Giu 2007
31
0
0
Perchè questo codice in IE funzia e FIREFOX no???

Help....

<script> function al(){
alert(document.getElementById('a').style.display);
if (document.getElementById('a').style.display=='none'){document.getElementById('a').style.display='block'}
else
{document.getElementById('a').style.display='none'}
}
</script>
<body>
<table >
<tr>
<td style="border-style: solid; border-width: 1px">&nbsp;</td>
<td style="border-style: solid; border-width: 1px">&nbsp;</td>
<td style="border-style: solid; border-width: 1px">&nbsp;</td>
<td style="border-style: solid; border-width: 1px">&nbsp;</td>
</tr>
<tr id="a" style="display:none">
<td style="border-style: solid; border-width: 1px">gggggggggggggggggggg</td>
<td style="border-style: solid; border-width: 1px">&nbsp;</td>
<td style="border-style: solid; border-width: 1px">&nbsp;</td>
<td style="border-style: solid; border-width: 1px">&nbsp;</td>
</tr>
<tr>
<td style="border-style: solid; border-width: 1px">
<input type="button" value="Pulsante" name="B3" onclick="al()">
</td>
<td style="border-style: solid; border-width: 1px">&nbsp;</td>
<td style="border-style: solid; border-width: 1px">&nbsp;</td>
<td style="border-style: solid; border-width: 1px">&nbsp;</td>
</tr>
</table>

</body>
 

Discussioni simili