Is it possible to have a CMS that loads articles using ajax, where the article is loaded through a function with parameters, and when a certain link is clicked, it redirects to the target page and launches the function on that page? For instance, let's say there is a function called loadArticle(articleID). When this function is triggered, it hides the div containing the article list and displays a specific article. Is there a way to call this function through a link, like:
<a onArticlePageLoad="loadArticle(15)" href="./articles">Title</a>
For example, on a page named page.html, there is a link that redirects to page2.html. Upon clicking this link, how can we load page2.html and execute a function called foo within page2.html?