how set iframe source for the html component ?


Actually i tried to add iframe source code to html component (not url). via code from database as shown below


how set iframe source for the html component ?

Thanks

Hello Sathish,

Wix already has a HTML iframe created for you, all you need is to put in your HTML code

To get the iframe :
click Add (+) on the left menu >> Embed >>Custom Embeds >> HTML iframe. Now just drag and drop
Click on it to add your HTML code in it.

It’s just like the ‘div’ class in html but visible in wix

DJ bon26

Thanks for your response.

I know that what you mentioned but i need to dynamically ( for ex i have 5 iframe code but need to show in one at the moment respect to some condition)
Like dynamic pages (not static page)

can you please help me out on this?

@sathish The HtmlComponent does not support dynamically changing its embedded script.

You could write a script that modifies itself based on which of the 5 scripts you want.

@yisrael-wix thanks for response

for example 5 told but near above 600 is there
is any other way there?