HomeArticlesFAQsXREFGamesSoftwareInstantBooksBBSAboutFOLDOCRFCsFeedbackSearchSite-Map
logo

Q792 How can I load a file into a layer?

You are here: irt.org | FAQ | DHTML | Q792 [ previous next ]

Try:

<A HREF="javascript:load('test2.htm','myLayer',400)">Load</A>

<SCRIPT LANGUAGE="JavaScript"><!--
function load(url,id,width) {
    if (document.layers)
        document.layers[id].load(url,width);
    else
        if (window.frames.length > -1)
            window.frames[id].location.href = url;
}
//--></SCRIPT>

<IFRAME ID="myLayer" WIDTH="400" HEIGHT="400"></IFRAME>

<LAYER ID="myLayer" STYLE="width: 400; height: 400;">
This is some text This is some text This is some text This is some text
This is some text This is some text This is some text This is some text
This is some text This is some text This is some text This is some text
This is some text This is some text This is some text This is some text
This is some text This is some text This is some text This is some text
This is some text This is some text This is some text This is some text
This is some text This is some text This is some text This is some text
This is some text This is some text This is some text This is some text
This is some text This is some text This is some text This is some text
</LAYER>

©2011 Martin Webb