When my user clicks the purchase button, you want to download another page from my site with the image of the product that they have chosen to insert in the div on purchase.html. (first page of html)
<td width="203"><img src="images/chocoImage4.png" width="190" height="206" class="birthpic1"/> Hershey Bouquet Mix $32</td>
<td width="211"><img src="images/chocoImage5.png" width="190" height="206" class="birthpic2"/>Chocolate Strawberry $52</td>
<td width="203"><img src="images/chocoImage6.png" width="190" height="200" class="birthpic3"/>Chocolate Strawberry $42</td>
(second page of html purchase.html)
<div class="aside">
<div class="hours">
<p><strong>North Las Vegas</strong> Coming Soon!!!<br />
<strong>Monday-Friday:</strong> 9:00 am — 5:00 pm<br />
<strong>Saturday: </strong>8:00am — 2:00 pm</p>
</div>
<div id="imagePicked">
<p>Hello</p>
</div>
JavaScript (code)
function load_Product () {
var theDomain = window.location.assign("purchase1.html");
var d = document.getElementById("imagePicked");
var p = d.childNodes[0];
var imageContent = p.innterHTML;
var productImage = '<img src="http://flowersbyreginalv.com/chocoImage1.png">';
imageContent = productImage;
loadSum = imageContent + theDomain;
}
source
share