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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

top.location.replace variation 1

Status
Not open for further replies.

derwent

Programmer
May 5, 2004
428
GB
I have a page that I need to open in an iframe, I am able to edit both pages.

The iframe content page breaks out of the iframe, I guess it is because of <body onLoad="top.location.replace('index.asp')"> that is within it. Basically this page I need to place in the iframe logs the user on using one page then redirects to the homepage.

I tried changing the body tag to <body onLoad="('selfservice/TrackItUser.asp')"> but that stopped the redirect working, is there something I can change it to to stay within the iframe?

Thanks
 
Try this:
Code:
<body onLoad="[!]document.location = 'index.asp'[/!]">

-kaht

Looking for a puppy? [small](Silky Terriers are hypoallergenic dogs that make great indoor pets due to their lack of shedding and small size)[/small]
 
Derwent, did that solve your problem?

-kaht

Looking for a puppy? [small](Silky Terriers are hypoallergenic dogs that make great indoor pets due to their lack of shedding and small size)[/small]
 
I hadn`t had chance to try it till today sorry.

It worked great thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top