Once you have created the element e, you have a javascript object on your hands. You either access its innerHTML property (first example), or build its content with appendChild (second example).Both are dynamic: