Notifications
Clear all

Change SRC url in iframe with a button press

4 Posts
2 Users
0 Reactions
1,127 Views
Posts: 2
Topic starter
(@paulharlin)
New Member
Joined: 5 years ago

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.

Is this feature in the pro version? Is it something that is done in shortcode? I do not have much knowledge or javascript or CS

It looks like this might be what I need

Example 49: Using placeholders in the src parameter (pro)

 

3 Replies
TinyWebGallery
Posts: 925
Admin
(@admin)
Prominent Member
Joined: 16 years ago

No - this is basic html. You set the target of the link to the id of the iframe - done. 

Best, Michael

Reply
Posts: 2
Topic starter
(@paulharlin)
New Member
Joined: 5 years ago

Hi Michael

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.

cheers

Paul

Reply
TinyWebGallery
Posts: 925
Admin
(@admin)
Prominent Member
Joined: 16 years ago

:). Glad I could help.

Best, Michael

Reply