Hi Dian - I see your point. Actually I now realize I was incorrect. It turns out that the DATA is indeed there, but is found as an attribute of an INPUT tag. So innerText worked fine - What I need is innerHTML - so my problem is solved and thanks very much, Dian!
Rex
Very good, Dian. That (almost) solved my problem. That did indeed allow me to update the text found within the Body tag - and that is great - so thanks! However, I'm now experiencing another issue. Basically, I've trying to READ what's in the Body area - and then manipulate it - and then write...
Hi All - JavaScript newbie here. Any idea why the following always shows "aaa" in the web page AND the 2nd alert does not occur?
<html>
<head>
</head>
<script type="text/javascript" language="javascript">
function myTest() {
alert (document.body.outerText);
document.body.outerText = "bbb"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.