Pass Variables Between JavaScript and C++/Python?
I've been using these languages for quite some time now. I want to apply my skills by making a browser-based JavaScript game, albeit probably a simple one to start off with, but I want to be able to save the data (like any modern game has). Unless I'm mistaken, PHP is a server-side language that wouldn't save data on the player's machine. JavaScript has the FileScriptObject as part of the ActiveX, but I think I should stay away from that since it's proprietary and won't work in some browsers.
So without learning any new languages, I figure my best options are C++ and Python. But, how can I pass data from JavaScript code to a C++ or Python program?
Thanks!
(Addition: I'm also pretty good in PHP, too)