Change SRC url in iframe with a button press
This may be a very simple question, but I am trying to find out how I can update the website shown inside the iframe based on a button press on my page.
For example on my page i want to show one url in the iframe when visitors first come to the page. Then if they click on a button on the source page I want to update the iframe with a new URL and display the new content. The content is all on the same domain.
It looks like this might be what I need
Example 49: Using placeholders in the src parameter (pro)
No - this is basic html. You set the target of the link to the id of the iframe - done.
Thanks so much, I have a lot to learn still. But you pointed me in the right direction and that's all working perfectly for me.
:). Glad I could help.