Ok..I have the function which takes the parameters of the layer and the text I want to write into a div layer after I click on a submit button.

I want the page to stay like it is with the submit button when clicked the text is written into the layer instead of the page being totally replaced by the text.

View my page and source code here: