I have been looking for this topic for quite a few days. And could not find a working or final answer.
What I want to do is simply display a (stylized) summary of the last blog entry (from the blog page on my own site) in the div container on the main page of my site (which is not my blog). All the active links of this mirror blog entry ideally lead to the corresponding section of my blog page. This, however, is not necessary since the entire entry may link to the blog page.
Each blog summary on the blog summary page has a unique identifier sorted by number (for example, unique-ID-51 (last) unique-ID-50 (earlier), etc.). I thought about this with the document.getElementById JS command.
I would have to point the JS function to a relative location ( ../blog_folder/blog_summary.html ), perhaps with the .window.location.assign command, than capture the (stylized) content of the last element and display it on my first page.
But I have no idea how this code will look in reality. Can you point me in the right direction?
Thanks!!!!!!!
M.
javascript
Wanni
source share