Rodie
07-21-2005, 06:16 PM
Hi all :)
I have an HTML page that contains an <iframe>, called "oWhizzy". This iframe contains a <div> that contains a <table>. The point is that I fill the table rows after rows, and there is a vertical scrollbar that scrolls down automatically.
With Internet Explorer, the automatic scrolldown works, but not on FireFox. Why ?
What I attempt to do is write a javascript function in the <iframe>, to scrolldown the <div> when I load the iframe. But I cannot write javascript in the iframe like follow. I don't know why ...
In the main HTML page, I write the HTML code of the iframe like that:
var startHTML = "<html>\n";
startHTML += "<head>\n";
startHTML += "<script language=\"javascript\">" ---> does not work !!
...
startHTML += "</html>\n";
oWhizzy.document.open();
oWhizzy.document.write(startHTML);
oWhizzy.document.close();
Thanks if you have any idea, and if it is not too confusing ... :D
I have an HTML page that contains an <iframe>, called "oWhizzy". This iframe contains a <div> that contains a <table>. The point is that I fill the table rows after rows, and there is a vertical scrollbar that scrolls down automatically.
With Internet Explorer, the automatic scrolldown works, but not on FireFox. Why ?
What I attempt to do is write a javascript function in the <iframe>, to scrolldown the <div> when I load the iframe. But I cannot write javascript in the iframe like follow. I don't know why ...
In the main HTML page, I write the HTML code of the iframe like that:
var startHTML = "<html>\n";
startHTML += "<head>\n";
startHTML += "<script language=\"javascript\">" ---> does not work !!
...
startHTML += "</html>\n";
oWhizzy.document.open();
oWhizzy.document.write(startHTML);
oWhizzy.document.close();
Thanks if you have any idea, and if it is not too confusing ... :D