Cookie functions and shopping cart

Source: Internet
Author: User
Tags setcookie
Cookie functions and shopping cart
Zif posted on 16:13:00
Hanging out on the internet and finding a good idea!
It can be used in small online stores.
I will list the source code below and make good use of it!
Let me know what it is!
<Title> Claremont Toyworld </title>
Function SetCookie (name, price, form ){
Document. cookie = document. cookie + ":" + name + ":";
Document. cookie = document. cookie + "" + ":";
Document. cookie = document. cookie + price + ":";
Document. cookie = document. cookie + "" + ":";
Document. cookie = document. cookie + "|" + ";";
<Body text = "#000000" bgcolor = "# FFFF00" link = "# effecee" vlink = "# 551A8B" alink = "# FF0000">
<A href = "trolley.html"> here. </a>
<Table BORDER = "0" CELLSPACING = "0" CELLPADDING = "0" COLS = "3" width = "75%">
<Td> <strong> Furby </strong> </td>
<Td> The Amazing Pet </td>
<Td> <small> AUD </small >$ 69.95 <font size = "-2"> + <a href = "# Postage"> postage </a> </font> </td>
<Td> <form>
<P> <input TYPE = "BUTTON" VALUE = "Add to cart" NAME = "Additem1"
Onclick = "SetCookie ('furby', '69. 95', this. form);"> </p>
<Script LANGUAGE = "JAVASCRIPT" src = "trolley. js">
Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.