Is it possible to replace iframe src with a element href attribute when user clicks on it?
I have this code
and I am trying to let the user to search using duckduckgo and when clicked on result it should replace iframe src with a href value.
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.
Possible indeed. Here is an example for such a link:
This will replace the iframe source when the link is clicked.
Updated fiddle.
To be more flexible you can have such code though that will make all the anchors behave in the same way: