1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<!DOCTYPE html> <html> <head> <script> function boom() { document.getElementById("r").appendChild(document.createTextNode("B")); } </script> </head> <body onload="boom();"> <div id="r" style="display: grid;">A</div> </body> </html>