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!

turn iframe into parent window 1

Status
Not open for further replies.

dugen

Programmer
Jun 16, 2003
59
US
I have a login on a page inside of an iframe. When a user logs in, i want the page that comes up to be the new parent window.

I have no control over the login... it is a login for a site i have nothing to do with.

Is this possible?
 
You won't have control to run scripts on someone else's site, even if it loads up in a frame on your site.

-kaht

[small](All puppies have now found loving homes, thanks for all who showed interest)[/small]
 
BigJunk is having what you want your page to do, but his problem is reverse of yours.

In his situation he is loading up a remote login page into his iframe. On that remote login page there is a script that is run (on that page) that removes the login from any frames. He was wanting to stop this behavior, but since he was loading up a page on a remote server, he had no control on what scripts ran on that page.

So, to break out of the iframe, you need to run a script on the page that is loaded in the iframe. Since you are loading up a page that is on another server and you have no control over, you cannot force a script to run on that page (as I stated above).

-kaht

[small](All puppies have now found loving homes, thanks for all who showed interest)[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top