Skip to main content
Participant
Jan 12, 2020 4:51 AM UTC
Answered

Play HTML5 within a div on a webpage

Created a micro learning project (HTML5). I need it to run within a div on a webpage. Right now, I am loading the project into the div via JQuery .load command. However, the div is blank on the page and it displays full width. The project is small (300x400).

 

Any way to do this?

This topic is closed to new replies. Start a new post to keep the conversation going.
Lilybiri
LilybiriCorrect answer
Legend
Jan 12, 2020 8:20 AM UTC

Same answer here, I always put a link to the published course in an iFrame when inserting a published example in my blog posts. Have a look at the most recent published example:

http://blog.lilybiri.com/find-the-differences-game

3 replies

Lilybiri
LilybiriCorrect answer
Legend
Jan 12, 2020 8:20 AM UTC

Same answer here, I always put a link to the published course in an iFrame when inserting a published example in my blog posts. Have a look at the most recent published example:

http://blog.lilybiri.com/find-the-differences-game

Translate
Participant
Jan 12, 2020 4:30 PM UTC

That worked! Thanks.

Translate
RodWard
Community Expert
Community Expert
Jan 12, 2020 5:35 AM UTC

I think you would be better off running it in an iframe on the page, not a DIV.

Translate