Page 1 of 1
targeting an iframe / different window with header
Posted: Tue Jul 17, 2007 7:04 pm
by suthie
How can i use the header() function to target a different window?
What I want to do is target the whole window from within an iframe... can i do this with header() ?
Posted: Tue Jul 17, 2007 7:48 pm
by feyd
header() cannot target any window.
Posted: Tue Jul 17, 2007 8:55 pm
by suthie
is there a function that can target a window?
and btw i mean the current window, not a totally different window. i just want to access the window from within an iframe
Posted: Tue Jul 17, 2007 9:13 pm
by feyd
Nothing in PHP can target a window. That's entirely client-side functionality.
Posted: Thu Jul 19, 2007 4:20 pm
by suthie
could i use javascript within php like this:
Code: Select all
<?php
...php code...
if(condition){
?>
...javascript redirect code here...
<?php
}
?>
?
Posted: Thu Jul 19, 2007 11:49 pm
by feyd
Potentially.