Log in

View Full Version : getElementbyid script to place html files into a div tag



bryantewell
07-23-2009, 07:48 PM
i read somewhere that you can use a script with getElementbyid/innerHTML commands to place an external html file into a div tag with an ID. I tried the suggested code to no avail. I would just use an iframe by itself but you have to define sizes and I want the html files called upon to just take their full size on the main page. so, if page B is longer than page A, page B makes the entire site longer.

Beverleyh
07-24-2009, 01:08 PM
Might http://www.dynamicdrive.com/dynamicindex17/iframessi.htm or http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm suit your needs?