| Author |
Check and Replace Parent Page
|
Rob Hunter
Ranch Hand
Joined: Apr 09, 2002
Posts: 788
|
|
I have a page that will have 2 frames (one which will hold a page with a form and the other there'll be nothing in it). If someone decides to load the page with the form directly I want to have a javascript on this page and check if it is the parent. If so, then I want to replace the page with the page with the frames set up. Anyone have any suggestions for this? Thanks in advance. Rob
|
 |
Yuriy Fuksenko
Ranch Hand
Joined: Feb 02, 2001
Posts: 413
|
|
|
if (self==top) location.href="url";
|
 |
Rob Hunter
Ranch Hand
Joined: Apr 09, 2002
Posts: 788
|
|
Didn't seem to work... Does it get put in exactly as you had wrote? Thanks for the reply. Rob
|
 |
Rob Hunter
Ranch Hand
Joined: Apr 09, 2002
Posts: 788
|
|
|
Never mind. Worked fine. Thanks.
|
 |
 |
|
|
subject: Check and Replace Parent Page
|
|
|