in Code is Poetry

How to load a HTML file into a Div

Used an “onclick function” and successfully loaded a HTML file into a Div.

JavaScript: onclick=function(){ var el=document.getElementById("x") el.innerHTML="iframe src=\"http://muthuonline.com/about_muthu\" >"
< div id="x">

Wish there was an easier method like having a src for a div.

However had issues setting the iframe width. After getting this done, i was told that iframe kinda outdated. Next, i guess i have to do the inevitable…

Written By:

2 Comments

  1. Bhasker V Kode July 23, 2007
  2. Bhasker V Kode July 23, 2007

Add a Comment