Storing HTML within database and utilizing w/ dynamic pages

In

getElementById("whatevernameinsidedivs").innerHTML = event.data;

replace “whatevernameinsidedivs” with the field key from your database.


In my case, the field key is “command” so my code looks like this:

document.getElementById("command").innerHTML = event.data;

Also, yes, I used a plain text database field and pasted my code in that field.