Exchanging values between two Java Scripts defined in two different files
I have two Java scripts file say ''one.js'' and "two.js".
There is a function in "one.js" named "setData()" that is defined below
Similarly, there is a function "getData()" given below defined in "two.js"
But by some how, I am unable to get value in getData(). It seems, sessionStorage.getItem("urldata") is not working. However, if I write getData() in the file "one.js" then it works.
Please advise what is wrong with this code.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)