Ask questions via twitter! Message any question to @answers on twitter. We'll publish the question and send you a reply each time there's a new answer.
Next Question

Answered Question

 
M$1.00  Funded By Mahalo ? |  March 09, 2009 01:01 PM

How to close a parent page being inside a iFrame, using PHP?

Interesting Question?  Yes (1)   No (0)   
RSS
 
 

Best Answer  Decided by Votes

 
March 12, 2009 04:44 AM
This will go to the main parent no matter what level u are on.

top.window.close();

or

parent.window.close();

which will go to the parent of that window.

Make sure the frame and iframe are declared with application=yes
Source(s):
http://www.codingforums.com/showthread.php?t=110429



Helpful Answer?  (0)   (0)    Tip ensorceled for this answer
Permalink | Report
   Reply  
 
 

Other Answers (1)

Sort By
 
March 11, 2009 01:05 AM
PHP does not have this function. http://php.net

Helpful Answer?  (0)   (0)    Tip cherman for this answer
Permalink | Report
   Reply  
 
 
 
March 11, 2009 02:42 AM
Ok, but i'm programming in PHP and I want to close the parent window. Being more specific, you can use javascript if you want, but i've tried with no success.

Report
 
 
 
March 11, 2009 03:56 PM
Yeah, I don't think there is a way.

Report
 
 

Answer this Question

How tips and payments work

This question has already been resolved. You may add an answer to it but you will not be eligible to win best answer or any associated tips.

Ask a Question


140 characters left
Top of Page
Buy Mahalo Dollars with Credit Card or PayPal

Top Members

This Week All Time
  • cfinke
    cfinke
    2nd Degree Black Belt
    26536 Points
    M$29.75 Earned
  • opher
    opher
    Purple Belt with a Brown Tip
    5371 Points
    M$215.59 Earned
  • thisjustme
    thisjustme
    Green Belt
    1143 Points
    M$76.05 Earned
   See All
 

Most Popular Tags

mahalo(1729)
music(492)
iphone(479)
google(376)
food(332)
online(330)
beer(282)
money(278)
movies(275)
apple(256)
aotd(235)
health(226)
video(219)
free(219)
dog(209)
   See All
 

Categories

Welcome New Members


 
 
Mahalo Dollars are the currency of Mahalo Answers.

Each Mahalo Dollar costs $1.

Once you earn more than 40 Mahalo Dollars, you can request to be paid via PayPal. Each Mahalo Dollar is currently worth $0.75 when paid out via PayPal. Learn More

 
 

Please log in to use this function.