1var element = document.getElementById("YourElementId");
2var value_element = document.getElementById("YourElementId").value;
1async function test (){
2 document.body.innerHTML = await "<foo id='successGetID'>Hello Wolrd</foo>";
3 var init = await document.getElementsByTagName("foo")[0].id;
4 alert( init );
5}
6test();