Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

pass javascriot value from one page to another

function valueSender()
{
var a=999;
localStorage.setItem("myValue", a);
window.location.href="index.html";
}

var b = localStorage.getItem("myValue");
alert("The Value Received is " + b);
var resetValue =0;
localStorage.setItem("myValue", resetValue);
Source by www.howtocodeschool.com #
 
PREVIOUS NEXT
Tagged: #pass #javascriot #page
ADD COMMENT
Topic
Name
7+1 =