using a javascript code I can add a script into document that will load a feedier widget into my page.
This widget is into a
<div class = 'feedier-widget__container'></div>
I would like to put this div upon another div
<div class = 'btn_dwld_1'></div>
Is there some code I could use to authomatically overlay these two divs instead of using CSS?
Thank you
2
Answers
Try using : The Dialog element. Hope this helps
Dialog
One possible way to do that is to use the
insertBefore
orinsertAfter
methods, which insert a node before or after another node as a child of a parent node. For example, you could use this code to insert thefeedier-widget__container
div after thebtn_dwld_1
div: