I have a JS file with below code. I need to update the value of variable currentIndex from my child aspx page. Right now this js refrence is over a parent page. I would like to know how to do it. What syntax should be passed from child.aspx page to have the updated value of currentIndex everywhere.
(function($, global, undefined) {
var slides, currentIndex, $container, $fragmentLinks;
var events = {
...
prev: function() {
methods.go(currentIndex-1);
},
...