I'm trying to extract a JSON object with the following function:
function getPost()
{
var fname = document.getElementById("fname").value;
var lname = document.getElementById("lname").value;
var v = {
"name": {
"firstname": fname,
"lastname": lname
}
};
}
I need help figuring out how to share this JSON variable, v, between pages in my application. How can I pass this JSON data across different pages?