Can I use SSJS to redirect a parent window (from iframe)?

I have an xPage that is rendered in an iframe inside a normal HTML page.

Under certain conditions, I would like to redirect the user to a totally different web page.

I have used code similar to the following to try and redirect:

externalCtx = facesContext.getExternalContext();

externalCtx.redirect(“/differentPage.html”);

Unfortunately, that simply replaces the contents of the iframe with the new web page.

I know that I can use the “Parent” object to control redirection using client-side javascript, but is there any way of doing so using SSJS?

Thanks for any advice at all!

T.