Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <script src="toUndo.js" type="text/javascript"></script>
- <script src="undo.js" type="text/javascript"></script>
- <body>
- </tr>
- </thead>
- <tbody>
- <tr class="results" id="first">
- <td>First Place</td>
- <td><input type="number" id="name"/></td>
- </tr>
- <button id="undo">undo</button>
- <script type="text/javascript">undoName();</script>
- </body>
- </html>
- function clearIt {
- document.getElementById("name").value = 0;
- }
- function undoName {
- undoButton = document.getElementById("undo");
- undoButton.onclick = clearIt;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement