Ask coding questions

← Back to all posts
how do i embed the program into a website?
NicoleBurgess (5)

Every time I try to open the embeded program in my website, the program won't load, it worked the first time i tried but since that happened it wont load and then the website crashes

Comments
hotnewtop
AdCharity (1322)

Repl.it has protections against iframes, along with other main sties like Google and Discord. Basically you can't embed it. You should be able to embed some repl code though...

NicoleBurgess (5)

how would you be able to do that? the code i have to embed it came from this website when i clicked share so why would they provide an iframe and not let me use it @AdCharity

AdCharity (1322)

@NicoleBurgess try removing all of the attributes they give you except for the src since some of those aren’t supported/are depreciated by html5

AdCharity (1322)

@NicoleBurgess :/ maybe report on the bugs page... Just to check, are you trying to look on the iframe on the repl.it preview? Open up the repl in a new tab (like the actual site in a new tab, it looks like: https://[name of the repl].adcharity.repl.co/).

NicoleBurgess (5)

@AdCharity im trying to open the repl on a website im creating with html, it works when I open on the repl.it website

AdCharity (1322)

@NicoleBurgess great! That's perfectly normal. It's most likely because the repl preview on html repls is quite literally an iframe (or something similar) and you can't have iframes of iframes.

SixBeeps (5226)

That icon means that frame has crashed. Mind linking the repl for the webpage (or providing the code that embeds your repl)?

NicoleBurgess (5)
<iframe height="400px" width="100%" src="https://repl.it/@NicoleBurgess/wiki-project?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe> websites not published to the web yet (just for a school project so all I have is the code to embed) @niorg2606