I have a website and want to display the source code of a DIV of a page on another page of the same domain.
Ex: Get the news div that on the page index
and display for example on page teste
document.getElementById("tabnotocia")
Let's say I want to pick up the panel next to "Featured in Meta" and display it on my site.
See if I use the code
document.getElementsByClassName("module community-bulletin")[0]
In the browser console it displays the panel source code.
Now imagine that I want to put this source code on my site, so if something happens in this panel happen on my site too.
What do I need to do? Can you help me?
I believe that after recasting it is easier to understand what I want