It wouldn't work. Most browsers have a limit of about 2000 characters. Assuming a base64 encoding, it means you have about 1K of available data (since most saves have a power-of-2 size), far from being enough for any real game (especially if you want a save state, instead of an actual save - that would require to store the entire emulator state, which are at least a few megabytes tall).