I have an HTML page (courses.html
) that shows a list of courses. These courses are loaded from a database by an AJAX call into the array "courses" defined as global variable in script_1.js
. Once I go to the page of a specific course in course.html
I want to be able to pass this array to script_2.js
to mantain the order of the courses and navigate them without having to perform the AJAX call again.
How I can pass this global variable or how I can manage this?