By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,238 Members | 1,661 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,238 IT Pros & Developers. It's quick & easy.

Redirecting "main" frame

P: n/a
Don
Is there some way to redirect the "main" frame to another URL from within the "header" frame?

Thanks,
Don

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Jul 23 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Don wrote:
Is there some way to redirect the "main" frame to another URL from within the "header" frame?


yes.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #2

P: n/a
Don
On Sun, 13 Feb 2005 12:32:41 -0500, Randy Webb <Hi************@aol.com> wrote:
Don wrote:
Is there some way to redirect the "main" frame to another URL from within the "header" frame?


yes.

Care to tell me how it can be done?

Thanks,
Don

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Jul 23 '05 #3

P: n/a
Lee
Don said:

On Sun, 13 Feb 2005 12:32:41 -0500, Randy Webb <Hi************@aol.com> wrote:
Don wrote:
Is there some way to redirect the "main" frame to another URL from within the
"header" frame?


yes.

Care to tell me how it can be done?


parent.frames["main"]

is a reference to the window object representing the "main" frame
of the current frame's parent window (assuming such a frame exists).

You can set its location attribute as you would any other window:

parent.frames["main"].location="http://www.allstarpuzzles.com"

Jul 23 '05 #4

P: n/a
Don
On 13 Feb 2005 12:34:36 -0800, Lee <RE**************@cox.net> wrote:
Don said:

On Sun, 13 Feb 2005 12:32:41 -0500, Randy Webb <Hi************@aol.com> wrote:
Don wrote:
Is there some way to redirect the "main" frame to another URL from within the
"header" frame?

yes.

Care to tell me how it can be done?


parent.frames["main"]

is a reference to the window object representing the "main" frame
of the current frame's parent window (assuming such a frame exists).

You can set its location attribute as you would any other window:

parent.frames["main"].location="http://www.allstarpuzzles.com"

Thank you Lee. That works just great! Appreciate your taking the time to help out. This is a
great newsgroup, and for the most part has some really great people willing to lend a hand.

Thanks again,
Don

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Jul 23 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.