Remains the same as what?Originally posted by Matteo Di Furia:
Basically, I have an input text field which is configured as readonly and I use to display some information. If I refresh the page, the content of the page is refreshed, while the content of the text field remains the same
How is the content being set in the first place?How can I prevent the text field from retaining its content on page refresh ?
Not quite. That's JSP source. The HTML source will have the scriptlet expressions replaced.Originally posted by Matteo Di Furia:
HTML source :
Yes,Originally posted by Matteo Di Furia:
Can you change the span content via JavaScript?
innerHTML works in all major browsers. If you're squeamish, you can do it with DOM manipulation methods as well.I mean avoiding the innerHTML properties, which is not cross-browsers valid if I recall correctly.
Consider Paul's rocket mass heater. |