Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<iframe> help...

Status
Not open for further replies.
Sure, just create a blank HTML document and name it "blank.htm". Put that in the properties for each iframe window. Then, use an onLoad event handler in the main page that will direct your iframe to a url.

I don't work with iframes, but I think it might look something like this.
Code:
<script language=&quot;JavaScript&quot;>
function getPages() {
  document.myIframe.location.href = &quot;someotherpage.htm&quot;
}
</script>

<body onLoad=&quot;getPages();&quot;>

<iframe name=&quot;myIframe&quot; src=&quot;blank.htm&quot;>
When you view source, the property will still show &quot;blank.htm&quot; but you may have a different page loaded in the iframe by directing it to go there through script.

ToddWW
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top