0

I'm using the HTML Iframe component to display a web page inside my current website. The entire layout is mainly built based on Dash bootstrap but I also used a few HTML components like this:

dbc.ModalBody(
                    children=[
                        html.Iframe(
                            id="show_web",
                            src="https://www.google.com/",
                            style={
                                "width": "100%",
                                "height": "50vh",
                                "margin-bottom": "10px",
                            },
       
                    ] 
                ),

I'd like to create a modal (popup window) that displays a given website URL once users click on the button connected to the modal. As an example, I used the google website above but if I run the code, it throws an error that says "Google.com refused to connect."

How do I resolve this issue?

Thanks.

sgrimes
  • 65
  • 6
  • Does this answer your question? [How to show google.com in an iframe?](https://stackoverflow.com/questions/8700636/how-to-show-google-com-in-an-iframe) – cloned Mar 22 '22 at 07:09

0 Answers0