<p>This is one of those ajax "alternate flow" questions. Normally I expect my ajax request to return a part of the page. But sometimes it may return a full page with html, head and body tag. </p>

<p>At the time I return from my ajax-request I can detect if this is a full page, but is it possible to trigger a full page reload (with full event cycle) based on the string content I have ?</p>

<p>(And yes, I have tried replacing the body element, but that does not give me the events and does not allow me to change the content in the head block)</p>

<p>Any framework reference is ok</p>

I don't think it's possible to do directly.
You'd be better off saving the HTML somewhere and sending back a URL where it can be retrieved, then using
```
location.href = ...
```
;