You can serialize pretty complex graphs of data and UI information in a new format called "HTML."
The software capable of consuming this format is able to merge fragments of it into something called a DOM.
If you're doing something more complex than this in your app then quit whining about browsers not being convenient for you to abuse. The users don't want your crap any more than browser implementers do.
If you're doing something more complex than this in your app then quit whining about browsers not being convenient for you to abuse. The users don't want your crap any more than browser implementers do.