Hello:
I am automating a document with html and javascript through MS Notepad. So far, I have lots of text, a few textboxes, and a button, which will execute a javascript function after a number is entered into one of the textboxes. This document is only partially completed; however, I noticed that after I add entries into my textboxes and then press the button, all of my entries erase. I believe this is a postback issue of some sort; however, I thought using an onlick event with javascript would not execute a server-side command. Also, my document is all client-side code. Basically, it is just text, html, and, currently, one JS function.
As a reiteration, would anyone know why my textbox entries erase after a button's onclick event executes, and how to stop this from happening? Additionally, the onclick event executes the JS function, which is an if statement that adds more text to the document.
Thank you,
DFM