Click to See Complete Forum and Search --> : getting and setting a IFrames


scarleton
May 14th, 2003, 11:28 AM
I need some help. I am working on web page that will display a number of reports. The problem is that loading all the reports takes too long. So there will be a list of the report titles and an arrow for the user to click on. When the user clicks on the arrow, that will make a hidden div visible. The div contains an iframe. I don’t want to load the iframe until the user clicks on the arrow to make the div visible.

Currently, one of the iframes looks like this:

<iframe frameborder="1" scrolling="auto" style="height: 80%; width: 100%;" name="Reports\anReport.html">

I tried document.getElementById(“Reports\anReport.html”) to get the iframe, but that does not work. How do I go about getting the iframe?

Satishpp
May 14th, 2003, 12:32 PM
All about accessing iframes here ....

http://www.xs4all.nl/~ppk/js/iframe.html

Satish