Javascript / JQuery / JSON

Manually create cookie in internet explorer (IE) using Javascript

Open Internet Explorer and in the address bar and type

javascript:document.cookie=”CookieName=CookieValue”;

Example :- I have created cookie named “dotnet-fundamentals” having value “http://www.dotnet-fundamentals.com” as below.

.

You cannot simply copy/paste it because IE will strip off the javascript: at the front.

Leave a comment