mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-09 09:20:15 +01:00
22 lines
361 B
HTML
22 lines
361 B
HTML
|
<script>
|
||
|
function toggle( ID ){
|
||
|
target= document.getElementById(ID);
|
||
|
if (target.style.visibility == "collapse"){
|
||
|
target.style.visibility = "visible";
|
||
|
}
|
||
|
else{
|
||
|
target.style.visibility="collapse";
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<table border=1>
|
||
|
<tr><td>
|
||
|
|
||
|
<input type="button" value="Click" onClick="toggle('row')">
|
||
|
<table border=1>
|
||
|
<tr id="row"><td>Hello
|
||
|
</table>
|
||
|
|
||
|
</table>
|