Simple Js Needed To Set A Cookie

Part 1: Need a simple, clean, short Javascript to set a cookie when it is run. Needs to work in IE and Firefox. The variable in the cookie will be set by a name passed to the JS. Example: www.test.com/track.js?var=gr&c=mg
The value should be 1. Cookie name should be set by the c variable.

Part 2: read.js
When this JS runs it should check to see if a variable is present and if it is run another JS.
Eaxample: read.js?var=gr&c=mg

If cookie mg is present and variable var is 1, then it should run a JS.
Example: run.js

* Needs to be completed in 24 hours.

Leave a Reply

Your email address will not be published. Required fields are marked *