I am working on salesforce. Some pages are totally inaccessible i.e., I cannot add any javascript in those pages. But there are some pages where I can add some javascript and these both pages are on the same domain. Can I in some way store the script in a cookie or local storage or something, so that when the page(which is accessible) loads I can store the script and execute it when the pages which are inaccessible loads?
Please help!!
Regards
Sameer
No that is not possible, unless you have access in some way to modify what is shown on the page. If it were possible, hackers would just deposit cookies on anyone’s machine, corrupting the internet.