mercredi 22 juillet 2015

How can I erase a section of my table to display a message without touching the rest?

I have basically created a table that is made of two rows, the first row checks if the user input is correct or not, and the second row is displaying a button. I have used the following code inside my script function inside the first row of my table to display the output response:

document.write("<p>" + txt.fontsize(5) + "</p>"); document.close();

However this code will delete the entire page (document). Can anyone advise me how to write the message only the top section of my page (or table) and leave the second row of my table unchanged?




Aucun commentaire:

Enregistrer un commentaire