I need to write to HKEY_CURRENTUSER using javascript. It should work on Googl开发者_StackOverflow中文版e chrome 10 & 11 - WinXP and 7. How do I do that?
You can't. Allowing this via web browser would have pretty serious security consequences.
This is not possible due to security restrictions. The browser should not be able to modify the local machine.
If you were doing this in IE, it would be possible using an Active X control, but in Chrome it is not possible at all.
You can only do that on a windows machine you control, using c/wscript. Example
精彩评论