744francie901coote067
New Member
I want to write script like this once click on a button it has to add a new row to the existing table\[code\]<!DOCTYPE html> <html> <head> <script> function myFunction() { <tr><td></td></tr> } </script> </head> <body> <table border="1" id="mytable"> <tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </tr> <tr> <td>row 2, cell 1</td> <td>row 2, cell 2</td> </tr> </table> <button onclick="myFunction()">Try it</button> </body</html>\[/code\]Plesae help how i can do it?