Is it possible to put an innerHTML (or style.) Variable in DOM javascript? If not, is there a trick to making this possible?
In the following example:
<h1 id="id01">Old Heading</h1>
var element = document.getElementById("id01");
var newinner = "innerHTML";
element.newinner = "New Heading";
TAG.
– Mike de Bie May 15 '21 at 09:09