I have a page http://www.sample.com/load.html ,which loads javscript file http://example.com/test.js which contains code for writing cookies on page , will I be able to create a cookie for http://www.sample.com.
CAn JS access the domain from where they are loaded or only those domain on which JS file is loaded?