开发者

javascript on page can i store to allow javascript in a cookie

开发者 https://www.devze.com 2023-01-25 19:06 出处:网络
On my page i have some javascript and ofcourse IE has prevented the page from running scripts or activex controls. if they click to allow the scripts to run can i store that in开发者_C百科 a cookie?

On my page i have some javascript and ofcourse IE has prevented the page from running scripts or activex controls. if they click to allow the scripts to run can i store that in开发者_C百科 a cookie?

I am willing to read and write the cookie in which ever language that would allow this.


IE normally only prevents javascript and activex controls when running the file locally. Once you put the file on a server somewhere you will not be prompted for run permission.


Cookies are data, you can store executable code in them but they can't execute the code themselves. You can, for example, store JavaScript in a cookie and eval it on a subsequent request, but you probably shouldn't.

0

精彩评论

暂无评论...
验证码 换一张
取 消