I'm doing a website in HTML and want to get information from one page to another. It's a mock e-commerce site I want to price to follow with the pages. I have the following which does not work. Note the alert works.
<script language="javascript" type="text/javascript">
function purchase(checkboxform)
{
var num = checkboxform.length;
for(var i = 0; i< num; i++)
{
if(checkboxform[i].checked)
{
alert("Brunelleschi's Dome is "+checkboxform[i].value);
document.write("cart.html.form1.Price.value = checkboxform[i].value");
}
}
}
</script>
--------------------------------------------------------------------------------