If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.
Register Today on DNForum IT'S FREE!![]()
Hello All,
The script which I am trying to use is to resize an iFrame on the main page of my site based on the height of the document:
The script is as follows:
<script type="text/javascript" language="Javascript1.2"> function setSize() {
var innerDoc;
if (document.frames)
innerDoc = document.frames["I1"].document; //IE
else
innerDoc = document.getElementById("I1").contentDocument; //Mozilla
document.getElementById("I1").height = innerDoc.body.scrollHeight;
}</script>
When I call it in the html or cfm file I use it as follows:
td background="index_files/index_9.jpg">
<iframe onLoad="setSize()" name="I1" id="I1" d="I1" src="index_files/main.htm" title="Main" frameborder="0" height="821" scrolling="no" width="100%">
Whenever I try to validate this on any of the major sites for browser compatibility etc. I get the error that "here is no attribute "ONLOAD"."
The URL of the site is: http://www.newburghschools.org
Please let me know if anyone on here has any ideas.
Any help is greatly appreciated !
![]()
Have you tried just using the onload in the body tag? or.... maybe you could do something like:
<body onLoad="document.getElementById('I1').onload='setS ize()'"
Bookmarks