http://www.perlmonks.org?node_id=948760


in reply to How to replace the output (new html page)?

You are searching for some kind of server push with HTTP. It can be done -- look at a Bugzilla's after-search "munching bugs" screen.

I'm not familiar with it, but I suspect it is a case of sending two files with "Content-Disposition: inline" and some sort of MIME splitting to distinguish the two HTML pages. Try to find out more by reading the Bugzilla source.