This page shows how to use cookies to determine what should happen next.
This example assumes you have visited the Wilson.quick.cookie
demo page and selected a favorite color in the demo. In that
demo a cookie called facolorc gets set to the values of red, green, or
blue. The script illustrated below would read the cookie and branch
based on that setting. The branching is accomplished by the "document.location="
javascript function which goes to the url specified after the equal sign.
If you have selected a color then you can see the branching in action at
cook.branchaction.html.
| <HTML>
<HEAD> <SCRIPT language="Javascript"> // <!-- hide from other browsers // routine to get cookie value ----------- function getCookie(name) {
while ( i<= cooktxt.length){
}
function newload() {
</HEAD> <BODY onLoad= "newload();" >
|