iFrame button function to main Page

I have a bubble app (site B) that i display using iFrame element in my main page (Site A) and i would like it to navigate to a specific page in Site A when a button is pressed in Site B. Is this possible? TIA

Use the free Bubble Toolbox plugin to have the action “Run javascript” there you can simply type window.open(“theURLyouWantOpened.com”)

1 Like

Thank you, this one works! Additional question though… Is it possible for it to just open on the same page rather than opening a new tab?

The target attribute specifies where to open the linked document:

<a href="https://link.com" target="_blank">Link</a>

Definition and Usage

The target attribute specifies where to open the linked document.


<a target="_blank|_self|_parent|_top|framename">

Im sorry, i am very new with this along with coding. Do i simple use this line of code (replacing the ones i need) and run it as Javascript in bubbleio workflow?

This is from stack overflow. You just need to add to what you already have for it to open up within the iframe.

This topic was automatically closed after 70 days. New replies are no longer allowed.