开发者

javascript on page can i store to allow javascript in 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜