is it possible to insert the value of some
JavaScript variable in the body of HTML
(for example the text on button
<script type="text/javascript">
function myFunction() {
document.forms[0].elements[0].value = 'Custom text';
// or:
// document.myForm.button001.value = 'Custom text';
// which does the same
}
</script>
<body onload="myFunction()">
....
<form name="myForm">
, or at any part of the HTML text part).
To *change* the content of a text block see
<
http://www.jibbering.com/faq/#FAQ4_15> and related links.
To *insert/replace* some text of a text block, you need to use
TextRange
object
<
http://msdn.microsoft.com/library/d...hor/dhtml/reference/objects/obj_textrange.asp>
but it flyes as expected for IE only.
For other browser you need to use different legacy tricks. As these
tricks are numerous and their set/implementation depends heavily on
current tack, more clarification of your actual aim would be helpful.