Need help with dates and upcoming events!

This is my problem:
I have a seperate page on my website with a list of upcoming events. On that page I have the date of the upcoming event and then the description. On the main page of my website, I have a small table with the next four upcoming events(with the dates of course).
So far I have been manually changing the four closest upcoming events on the main page. (just copy and paste from the upcoming events page)
My question:
Can javascript “grab” from the upcoming events page the next four events, and have them automatically pasted into the table on my main page? And if it is possible, what code(s) do I need?This way I don’t have to do it manually and will save me lots of time.

P.S. I have a weak understanding of javascript, but throw any code at me and I will try to understand it.

My question:
Can javascript “grab” from the upcoming events page the next four events, and have them automatically pasted into the table on my main page? And if it is possible, what code(s) do I need?This way I don’t have to do it manually and will save me lots of time.

While I think it probably could (we’re assuming all these pages are all on the same domain etc), I’d say you might want to consider having the back end do it instead. You’d have a file with your events and dates stored on the server, and a script (in whatever language is running your site’s backend) could fill both pages: the page listing all of them and the front page’s first four.

The benefit of this would be for users who don’t have JS of course. They may also want to know about your event times and dates : )

Thank you very much. I did not think of this.