I ask this because I want to display a page in iframe and on clicking any link in iframe content, it should display it in the same iframe.
Check this site. and see how an iframe alow me to surf other sites.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
that’s not anything special, that’s just how iframes work.
however if any of those sites had an
It would break out of the iframe and load in the main page.
There is no way that I am aware of to stop an iframe from taking over your window with target=_top links. You can’t modify someone else’s content in the iframe from your parent window, there are security issues with talking cross frame that prevent you from doing this.
With Thickbox just load your html file and make sure you dont target=_top in any of thage pages you want to stay in the iframe.
So copy & pasting from ThickBox’s example, with some jQuery: