For class we are supposed to create an ABCD table and then create a button that flips the order of the table. We have to use PHP inside of the webpage. This is what I have so far. (I dont know much Javascript yet)
<HTML>
<Header>
</Header>
<script>
function myFunction()
{
document.getElementById( "demo" ).innerHTML="";
}
</script>
<body>
<table border="2">
<tr>
<td> A </td>
</tr>
<tr>
<td> B </td>
</tr>
<td> C </td>
<tr>
<td> D </td>
</tr>
</table>
</n>
</body>
<input type='button' onclick='myFunction()' value='Reverse'/>
<Title>
</Title>
</HTML>
Edited 1 time(s). Last edit at 06/28/2013 12:36AM by thisisforclassdontjudgeme.