How to get the javascript to print (document.write) within the same page?

Above is my personal code.I’m trying have the result that will print below the control key.Im not sure how.it puts the actual result within similar page.Short of making a new text message box and having that in there.Is there a way to put this in an integral part of a article Like maybe with a

label maybe

Give your whole body tag a strong id feature of human body and try this.

purpose getElements()
var system = document.getElementById(“body”);
var a = document.getElementsByName(“x”);
system.innerHTML += ”

” + a.length;

Leave a Reply