Ariel
Ariel

Reputation: 2808

How to access the windows registry with javascript?

I need to write to HKEY_CURRENTUSER using javascript. It should work on Google chrome 10 & 11 - WinXP and 7. How do I do that?

Upvotes: 1

Views: 3675

Answers (3)

KooiInc
KooiInc

Reputation: 122916

You can only do that on a windows machine you control, using c/wscript. Example

Upvotes: 1

Alan Geleynse
Alan Geleynse

Reputation: 25139

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.

Upvotes: 1

Alex Wayne
Alex Wayne

Reputation: 187054

You can't. Allowing this via web browser would have pretty serious security consequences.

Upvotes: 7

Related Questions