My index file is pointing to a cgi script which builds the html page and sends it back to the client, which contains javascript functions.
The intial loading and display of the page is working fine.
However, when I execute any javascript functions on the page (e.g. - clicking a test button to hide a DIV section using style.display="none"), it automatically reloads the index file!!!
I see the DIV section briefly disappear, but then the entire page reloads, thus effectively canceling any previous javascript function induced effects.
It (reloading of page automatically) even happens when I execute a simple function like 'alert ("hithere")'.
What am I forgetting/missing here?
The intial loading and display of the page is working fine.
However, when I execute any javascript functions on the page (e.g. - clicking a test button to hide a DIV section using style.display="none"), it automatically reloads the index file!!!
I see the DIV section briefly disappear, but then the entire page reloads, thus effectively canceling any previous javascript function induced effects.
It (reloading of page automatically) even happens when I execute a simple function like 'alert ("hithere")'.
What am I forgetting/missing here?