Fahad Zaman Fahad Zaman - 8 months ago 33
HTML Question

How to add a html file into another html file (with example)

I asked the question before, couldn't get help. Here's agin -
I've a html file - "main.html" & another html file "content.html", where content is absolute &

contentWidth = window.innerWidth || root.clientWidth || body.clientWidth;
contentHeight = window.innerHeight || root.clientHeight || body.clientHeight;

  • I don't know the height & width of main.

When I add the content on main by adding this code to main.html body -

<object type="text/html" data="http://pechasgamestudios.com/richmedia/aci/" width="100%" height="560"
style="overflow:auto;border:0px ridge blue; position: absolute; top: 0px; left: 0px;">

main.html became this - http://pechasgamestudios.com/richmedia/acitest/
Its not working well. There should be no scrollbar. What to do?


I think the problem stems from http://pechasgamestudios.com/richmedia/aci/ add following style tag to canvas

style="width: 100%; height: 100%;";