tags:

views:

79

answers:

1

is it possible to in-place replace the entire html document?

i tried jQuery("html").html("....")

but style information does not survive.

i'm trying to avoid using data uri because i do not want the generated document to be stored in the browsers history

+2  A: 
T.J. Crowder
so it's not possible to load a new <head> tag?
james
@james: It *may* be possible, but if you do, you'll need to make sure it has everything in it you want to still have (like the style sheet references). You probably don't have to worry about maintaining script tags; once script has been loaded and evaluated, it's no longer bound to the element that created it and removing the element has no effect on the script.
T.J. Crowder