1600 PMP mock questions 1400 CAPM mock questions 800 SCJP 6 mock questions 600 OCAJP 7 mock questions 590 OCPJP 7 mock questions 556 SCWCD 5 mock questions 500 OCEJWCD 6 mock questions pdfDownload (java,struts, hibernet etc)

Java Script Tutorials

add cookie example javascript

<html><head><title>Cookie Example</title>

<script language = "JavaScript">
<!-- hide me

function setCookie()
    var the_name = prompt("What's your name?","");
    var the_cookie = "wm_javascript=" + escape("username:" + the_name);
    var the_date = new Date("December 31, 2050");
var the_cookie_date = the_date.toGMTString();
    the_cookie = the_cookie + ";expires=" + the_cookie_date;
    document.cookie = the_cookie;//set the cookie
    alert("Thanks, now go to the next page.");


<h1>Cookie Example</h1>
The link below will
ask you for your name and then send it to your
hard drive as cookie.
Next when you hit the second link, the next page is going
to read the name from your cookie and tell you what it was.

Click here to <a href="#"
onClick="setCookie(); return false;">set a cookie</a>.<br>
Then click here
to see an example of <a href="read_cookie.html">the
cookie being


Reviews and Comments

PMP, CAPM, PMI is a registered certification mark of the Project Management Institute, Inc

Copyright © www.techfaq360.com 2019

About US | Contact US | Privacy Policy | Terms and Conditions  | Website disclaimer  | Cancellation and Refund Policy  | Shipping & Delivery Policy