My question might seem a bit ambiguous but you should understand what I mean first.
I want to be able to generate dynamic URLs on the fly so that when a link (x link) is clicked on a parent page, it should move to a 'node' page which then decides to move to the 'x' page corresponding to the link clicked on the parent page.
For e.g. -
- Parent page has 5 links (a, b, c, x, y)
- User clicks on 'b'
- User is led to Node Page which plays a video and automatically (after the video ends) redirects to Page 'b' (js to simulate click below)
Is there a mechanism where the Node page can detect the link clicked on the parent page and lead the user to the corresponding page ID defined on the parent page? See Image below - 
I already have implemented the automatic progression from the Node page using JS below which leads the user to the next page after 15.5 seconds -
<script>
$("document").ready(function() {
setTimeout(function() {
$(".proceed").trigger('click');
},15500);
});
</script>
What I need to know is that based on the link clicked on the parent page, can the Node Page decide where to lead the user next?
Also, this HTML package is to be used on an e-detailing platform running on iOS for the iPad which in my experience allows most of HTML, CSS & JS/jQuery.
Thanks in advance