Is there a way to enforce iframe to open its target=”_blank” links inside the frame and not open a new window/browser-tab?
Thanks.
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.
You can write a bit of JavaScript, made easier using a framework such as jquery, that just removes that attribute from each link on the page. Does that suffice?
UPDATE: OK, so following your clarification, and having done a quick test, I believe the answer is “no”. You’ll get a permission denied error when trying to access the iframe’s document via javascript.