Hvorfor virker dette ikke i alle browsere? Fejl i Scriptet?
Ja, hvorfor virker dette ikke i fx. Firefox? Fejl i Scriptet???Kildekode:
<!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" xml:lang="da">
<head>
<title>Master</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Language" content="dk-DK" />
</head>
<body>
<table border="0">
<tbody>
<tr>
<td>
<a onclick="if (test1.style.display=='none') {test1.style.display=''} else {test1.style.display='none'}" href="java script:void('0');"><b>test 1</b></a>
</td>
</tr>
</tbody>
</table>
<table id=test1 width="97%" align=center>
<tbody>
<tr>
<td>test 1</td>
</tr>
</tbody>
</table>
<br><br><br>
<table border="0">
<tbody>
<tr>
<td>
<a onclick="if (test2.style.display=='none') {test2.style.display=''} else {test2.style.display='none'}" href="java script:void('0');"><b>test 2</b></a>
</td>
</tr>
</tbody>
</table>
<table id=test2 width="97%" align=center>
<tbody>
<tr>
<td>test 2</td>
</tr>
</tbody>
</table>
<script type="text/javascript">
//hide app features
test1.style.display='none';
test2.style.display='none';
</script>
</td>
</tr>
</tbody>
</table>
</html>
