Modify the contents in Dynamic HTML
Hi friends,
I want to modify the contents in a HTML page. This page is dynamically generated from some JSP. First of all, is it possible to modify the content in a HTML page that was generated at run time. If so, Pls. give me an example of the same.
Tons of thanks in advance....
SIVA
# 2
Here's an example:
You have a JSP page that has a form tag called myForm.
You have a textfield named 'textField1' in the form.
You have a button on the form with an onClick event, in the javascript
function that is called for the onClick, you can change
the contents of the textfield by writing something like this:
document.myForm.textField1.value="new contents";
For further information on this, I suggest reading up on Javascript. One book on this is 'Javascript, the definitive guide".