Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

redirecting to some page from inside of the frame

Status
Not open for further replies.

gizmicek

Programmer
Jun 25, 2003
107
CZ
Hi all,
I'd like to ask if anyone knows how to access the main frame (parent) from within some child frame (created using frameset)? I'm doing chat and I need to redirect user to another page when he is kicked from the room (the redirection should be made from within the frame which displays the room content and which is refreshed every 10 seconds). I presume that some javascript object interface is needed for that. Maybe something like this:
Code:
document.frame.parent.location=URL
but this is only my suggestion and I don't know it exactly.

Thanks for help
 
[tt]document.frame.parent.location=URL[/tt]
[tt]top.location.replace(URL);[/tt]

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
this does the job:

Code:
window.parent.location='kicked.html'

;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top