Insert "<li>data</li>" on mainWindow on page load


#1

Hi to all,

i’m new in Electron an on my first steps with Javascript, so need some guru help :confused: .
I want to insert some data on mainWindow.html, on page load, an example is to insert:
< li >data< /li >
after some existing < ul id =“help”>< /ul >.

Can someone giv-me a valid example, because i’ve search, but not find a good example to implement this.

Thanks for the help.


#2

Here’s a thorough tutorial on DOM manipulation.


#3

Thanks for the help @DamnedScholar, that and https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_li_create, helped me, to get the implementation.

Best regards