I\'m trying to modify this code to also give this div item an ID, however I have not found anything on google, and idName does not work. I read something about append
var g = document.createElement('div'); g.id = 'someId';