+ 1

Write a value from my index.js page to index.html

Based on a defined object. How can i write a value to a new <div> at the bottom of my index.html page?

6th Feb 2018, 9:42 PM
Luis
Luis - avatar
3 Respuestas
+ 6
This creates a new division. let div = document.createElement("div"); document.body.appendChild(div);
6th Feb 2018, 10:05 PM
John Wells
John Wells - avatar
+ 1
Maybe, use a function and call it in the <div>
6th Feb 2018, 9:59 PM
Robert Ndungu
Robert Ndungu - avatar
+ 1
I think i have to create a DOM Element since its from my .js page
6th Feb 2018, 10:00 PM
Luis
Luis - avatar