Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to set a cookie in the address bar?

I want to add a cookie so that I can exclude my interaction with my website from google analytics (I don't have access to put files on server as is third party application)

Is it possible to set a cookie with javascript by executing code in the address bar of the browser?

like image 802
Craig Angus Avatar asked Oct 08 '09 15:10

Craig Angus


1 Answers

javascript:document.cookie="name=value"
like image 191
gcb Avatar answered Sep 27 '22 22:09

gcb