Skip to content

How to do a redirect in parent window using an iframe

Sometimes you may be required to make the user visit a particular url from webpage which is loaded in an iframe into another website/webpage

E.g if has an iframe which loads your page and you can redirect the entire iframe along with parent window to a new page by making use of the new script

So here is the code which you can place inside the iframe to redirect the parent = ""; 

(or) = "";

You can use either one of these