title: Key Value pair for cookies
body: <p>I am having an image icon which on clicking should navigate to the other page </p>
  
  <pre><code>  '        &lt;input type="image" id="dataReview_' + templates[i].dataFileKey + '" title="Data Review" src="Images/datareview.png" style="height: 15px; width: 15px" onclick="dataReview_tasks(this); return false;"/&gt;\n' +
  </code></pre>
  
  <p>In dataReview_tasks() function below </p>
  
  <pre><code> function dataReview_tasks(inputOb)
      {
     var info = new IOInfo(inputObj);
     var id = info.key(0);
     var tdLastDateId = "lastRun_" + id;
     var decoded_lastRunDate = decodeURIComponent(trim($("#" + tdLastDateId).text())).split(" ")[0];
     var lastRunDate = encodeURIComponent(decoded_lastRunDate);
     window.location('&lt;%= ResolveUrl("~/GUI/DataReviewNEW.aspx") %&gt;');
  </code></pre>
  
  <p>I should be making the ID and the lastRunDate as cookies. How can I approach this.</p>
  
  <p><a href="https://i.stack.imgur.com/gsSI1.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gsSI1.jpg" alt="enter image description here"></a></p>
  
  <p>I am not sure why it is not holding the value 54 while I am debugging, I am new Javascript and not sure if I am giving them properly in document.cookie Any help is greatly appreciated</p>