Streaming live at 10am (PST)

Getting a link to change the <a src=> of an iframe

Hi there!

I wanna have a big google maps frame, with a menu on the left which changes the pinned location based on which menu link you click. London takes you to London, Budapest to Budapest and so on…

This is the code I use for the iFrame:

frameborder=“0” style=“border:0”
&q=Budapest” allowfullscreen>

So it basically needs to be able to change the whole “”.
Is there any way I can make a link block do this? When I try to use “custom (a) code” it just says “This name is reserved”.

I hope someone can help! :smile:
Best regards,

I don’t think you can do that with Custom ATTRIBUTES. Custom attributes are here to give attributes to elements, that you can use later with an engine like a JS API.

I think you’re going to need JS to dynamically change code.

And if it’s to change the url entirely, this will refresh the iframe, so why not using a tab widget in webflow to put all your iframes into tab contents? That way, you click a tab, it shows another map with another pin.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.