0

I have an iframe and from the page in the, I want to redirect the parent window to another page. How do I go about it.

if I use this

header ('location: /url');

the inner iframe window gets redirected and not the parent window. I need to redirect the parent window

KANAYO AUGUSTIN UG
  • 1,877
  • 1
  • 14
  • 27
  • Javascript. http://stackoverflow.com/questions/2161388/calling-a-parent-window-function-from-an-iframe – E_p Jan 20 '17 at 23:01
  • @E_p easy with javascript. I need `php` – KANAYO AUGUSTIN UG Jan 20 '17 at 23:03
  • There is no way to control browser with php. It is server side technology! even when you do `header ('location: /url');` Browser sill reads header and does redirect for you! – E_p Jan 20 '17 at 23:04
  • So the only way is to inject JS, that is calling parent JS function that does redirect. – E_p Jan 20 '17 at 23:06

0 Answers0